antsibull-changelog icon indicating copy to clipboard operation
antsibull-changelog copied to clipboard

Forgetting to add `is_other_project` to results in some strange behavior

Open briantist opened this issue 1 year ago • 2 comments

I was attempting to bootstrap a non-Ansible project, by copying my config from a collection and modifying a few things. I forgot to add is_other_project and tried to generate the changelog, using:

antsibull-changelog release --version <ver> --date <date>

In this case it could not find galaxy.yml of course and it did warn about that, but it also completely ignored --version and used a version it discovered from ansible itself (the version of core, or in the case of 2.9, it used 2.9.27 or whatever it was). I think the date was correct.

The warning led me toward adding --is-collection to the command line which was confusing because I never had to do it before, thought it might have been new, but this was not the right direction for this situation (and it still ignored --version) :)

It took me quite a bit of time to figure out what was going on, I thought there might have been a bug with the new-ish functionality for automatically reading versions from python-based projects.

Of course it was my error, but I wonder if there might be a better way to catch or warn about this.

briantist avatar Mar 11 '23 13:03 briantist