Skip to content
This repository has been archived by the owner on May 16, 2022. It is now read-only.

[BUG] Version update is not aborted with multiple files #245

Open
CermakM opened this issue Oct 18, 2019 · 3 comments
Open

[BUG] Version update is not aborted with multiple files #245

CermakM opened this issue Oct 18, 2019 · 3 comments
Labels
good-first-issue Good for newcomers

Comments

@CermakM
Copy link
Contributor

CermakM commented Oct 18, 2019

The func which looks for version files (and also, confusingly enough, updates the versions in these files), the logger reports the following errors when multiple files are changed:

from look_for_version_files function:

    if len(changed) > 1:
        logger.error('Multiple version files found. Aborting version update.')
    elif not changed:
        logger.error('No version files found. Aborting version update.')

However, the version HAVE been changed already... what is the desired behaviour, then? Should multiple version files be updated? Should the update be aborted, or not?

@jpopelka
Copy link
Member

and also, confusingly enough, updates the versions in these files

I see, some places are really confusing indeed.

what is the desired behaviour, then?

What do you think?
I'd say that the len(changed) > 1 branch should be removed completely and leave just if not changed.

@CermakM
Copy link
Contributor Author

CermakM commented Oct 21, 2019

Well, I am mainly confused about the Aborting version update. part (since there is nothing being 'aborted') there.

I'd say that the len(changed) > 1 branch should be removed completely and leave just if not changed.

+1, I think that updating multiple files is desired (altho it is not the best practice to have the version hardcoded in multiple places, some adventurers may do that anyway and we do want to bump all of these)

@jpopelka
Copy link
Member

feel free to fix it then ;-)

@jpopelka jpopelka added the good-first-issue Good for newcomers label Oct 22, 2019
nakul-shahdadpuri added a commit to nakul-shahdadpuri/release-bot that referenced this issue Sep 27, 2020
jpopelka added a commit that referenced this issue Sep 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good-first-issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants