-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
24.7.x loads template relative to --dir
#641
Comments
Thanks for the report.
I am sorry to hear about this regression. It looks like the current automated tests are not good enough. I am not using mono-repos. I guess the fix is to search for template path relative to the same directory where the configuration file was found. But I am not sure what is going in there. jinja_template = Template(template, trim_blocks=True) and then we have towncrier/src/towncrier/build.py Lines 216 to 228 in bc9fb41
with towncrier/src/towncrier/_settings/load.py Lines 187 to 212 in bc9fb41
|
I will not have time in the near future to look at fixing this bug. But if anyone has a fix, I am happy to review and merge |
We have a repo where one towncrier config and template file are used to generate changelogs for multiple subdirs (the monorepo scenario).
Here's how we configure it all. Here's how we invoke towncrier, note that we pass a --dir argument. It worked fine in v23.11.
24.7 broke this because it started searching for the template file relative to
--dir
.I'm going to pin our version of towncrier for now, but would love some guidance how we can support both usecases.
The text was updated successfully, but these errors were encountered: