-
Notifications
You must be signed in to change notification settings - Fork 36
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
Absent --change-log
, -m
option behavior is wrong when change log could not be parsed
#416
Comments
Thanks for reporting this. Could you give a bit more context so we can properly reproduce and fix this?
Falling back to the default behaviour upon parsing errors for changelog files indeed sounds sane. I'll take a look at this! |
1.5.2
I think it applies to most the steps:
https://github.com/goblint/cil. Basically the culprit there is the decades old |
The tag step will always need a changelog it can parse because its only purpose is to create a tag from the latest changelog entry. You can simply tag the repo yourself with the version you want to use and proceed with the release. If you're interested in using the default changelog format you could also start by using the expected changelog format for new release and keep the old entries the way they are. From the look of your changelog it should work. Something along those lines would do: ## 1.8.3
...
## previous versions
18 November 2021: goblint-cil-1.8.2
* Add columns to locations.
* Add support for __int128, __int128_t and __uint128_t.
18 May 2021: goblint-cil-1.8.0
... That being said, dune-release should still use good defaults when the changelog can't be parsed. |
Would it be worth updating the docs for the --change-log argument to include the expected format of the changelog file, or have the error message explain why the changelog file failed to parse? |
The man pages say:
However if dune-release guesses some change log file to exist, but fails to parse it (
dune-release: [ERROR] ./CHANGES: Could not parse change log.
), then it completely gives up instead of using the documented default behavior of falling back to the package description.If it cannot parse the change log it supposedly found, then it should pretend as if it didn't find one at all. The same goes for
-m
: it tries to very eagerly parse the change log and on failure doesn't do it's default:The text was updated successfully, but these errors were encountered: