-
Notifications
You must be signed in to change notification settings - Fork 123
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
towncrier happily reads 1.feature.rst~, ignoring 1.feature.rst #101
Comments
njsmith
added a commit
to njsmith/towncrier
that referenced
this issue
Dec 27, 2017
Currently (see twistedgh-101), if you have newsfragments/1.feature.rst newsfragments/1.feature.rst~ then towncrier will silently pick one of them essentially at random. We should fix twistedgh-101 so that it picks the .rst one, not the .rst~ one, but this would have been a lot easier to detect if towncrier had pointed out that these collided. So let's check for that.
njsmith
added a commit
to njsmith/towncrier
that referenced
this issue
Dec 27, 2017
On further thought, probably both of the options I said above are good ideas independently... #102 does the |
njsmith
added a commit
to njsmith/towncrier
that referenced
this issue
Dec 30, 2017
Currently (see twistedgh-101), if you have newsfragments/1.feature.rst newsfragments/1.feature.rst~ then towncrier will silently pick one of them essentially at random. We should fix twistedgh-101 so that it picks the .rst one, not the .rst~ one, but this would have been a lot easier to detect if towncrier had pointed out that these collided. So let's check for that.
njsmith
added a commit
to njsmith/towncrier
that referenced
this issue
Dec 30, 2017
Currently (see twistedgh-101), if you have newsfragments/1.feature.rst newsfragments/1.feature.rst~ then towncrier will silently pick one of them essentially at random. We should fix twistedgh-101 so that it picks the .rst one, not the .rst~ one, but this would have been a lot easier to detect if towncrier had pointed out that these collided. So let's check for that.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Another ugly bit of fallout from #65. Sorry.
I see two options:
Use
git ls-files
to find newsfragments, so we only pick up files that are actually under VCSInstead of blindly accepting anything that looks like
<anything>.<category>.*
, let projects specify an extension inpyproject.toml
and then only look for<anything>.<category>.<configured extension>
The text was updated successfully, but these errors were encountered: