Skip to content
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

issue with cruft #40

Open
dornech opened this issue Dec 23, 2024 · 2 comments
Open

issue with cruft #40

dornech opened this issue Dec 23, 2024 · 2 comments

Comments

@dornech
Copy link
Contributor

dornech commented Dec 23, 2024

I have an issue when trying to cruft my package.
cruft/cruft#319

It seems to me that this is caused by the yml-internal variable mechanism in .changelog-config.yml. If not used so often, replacing the variable by it's value is OK but not really in line with the documentation. I guess with being able to reference pyproject.toml in the yml-file, this would overcome the issue with cruft.

@coordt
Copy link
Member

coordt commented Dec 23, 2024

I think you can fix your issue by escaping this in your template: https://jinja.palletsprojects.com/en/stable/templates/#escaping

Instead of:

starting_tag_pipeline:
  - action: ReadFile
    kwargs:
      filename: "{{ changelog_filename }}"

Use:

starting_tag_pipeline:
  - action: ReadFile
    kwargs:
      filename: "{% raw %}{{ changelog_filename }}{% endraw %}"

@dornech
Copy link
Contributor Author

dornech commented Dec 23, 2024

Argh, didn't think of escaping in the template but sounds reasonable. Thanks, will try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants