Skip to content

Config resolved twice, resulting in not picking up MD fragment template #39

@brettcannon

Description

@brettcannon

With the following config in changelog.d/scriv.ini:

[tool.scriv]
format = md

I end up with fragments from the rst template. If I drop the following line:

self.resolve_all()

the issue goes away. It turns out that Config.resolve_all() is called twice: once with no settings read from the config file and again after reading the config. It looks like the first call sets config.new_fragment_template to the actual template and then subsequent resolve_all() don't update it since the file: new_fragment.${config:format}.j2 string has been replaced already.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions