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
adamralph commented
Version(s)
- 2.4.0
- 2.5.0
To reproduce
Steps to reproduce the behaviour:
- Create an empty git repo
- Make a commit
- Tag the commit
1.0.0
- Make another commit
- Set the
MinVerAutoIncrement
env var toMinor
(orMajor
) - 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
adamralph commented
released in 3.0.0-rc.2