adamralph/minver

Cannot set auto-increment to patch in the command-line tool when the env var is set to something else

Closed this issue · 2 comments

Version(s)

  • 2.4.0
  • 2.5.0

To reproduce

Steps to reproduce the behaviour:

  1. Create an empty git repo
  2. Make a commit
  3. Tag the commit 1.0.0
  4. Make another commit
  5. Set the MinVerAutoIncrement env var to Minor (or Major)
  6. Run minver with --auto-increment patch

Expected behaviour

The calculated version is 1.0.1-alpha.0.1.

Actual behaviour

The calculated version is 1.1.0-alpha.0.1 (or 2.0.0-alpha.0.1 if the MinVerAutoIncrement env var is set to Major).

Workarounds

Unset the MinVerAutoIncrement instead of overriding it with --auto-increment patch.

Additional context

n/a

fixed in #667

released in 3.0.0-rc.2