Skip to content
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

bump to patch alpha doesn't increment patch number #19

Open
Notmarrco opened this issue Oct 26, 2023 · 2 comments
Open

bump to patch alpha doesn't increment patch number #19

Notmarrco opened this issue Oct 26, 2023 · 2 comments

Comments

@Notmarrco
Copy link

Describe the bug
Bad minor number for monas bump "alpha"

To Reproduce
If my repo has v0.1.1, I want to publish a new minor alpha :

  1. monas bump
  2. select alpha minor
  3. proposed number is 0.1.1alpha

Expected behavior
I think it should be 0.1.2alpha

@HuM4NoiD
Copy link
Contributor

HuM4NoiD commented Oct 26, 2023

You could use the command monas bump patch alpha
Example:
Before the bump command:
root pyproject.toml

[tool.monas]
packages = ["utils"]
version = "0.1.1"
python-version = "3.11"

Running the command:

$ monas bump patch alpha
monas Will bump version for 1 package(s)
  utils 0.1.1 -> 0.1.2alpha0
Continue? [y/n] (y): y
monas Version updated
monas Git repository updated

After the bump:
root pyproject.toml

[tool.monas]
packages = ["utils"]
version = "0.1.2alpha0"
python-version = "3.11"

However this does work not if you want 0.1.2alpha0 to turn into 0.1.2alpha1.
To turn alpha0 to alpha1 you will have to use monas bump alpha after that.

@Notmarrco Notmarrco changed the title bump to minor alpha doesn't increment minor bump to patch alpha doesn't increment patch number Oct 27, 2023
@Notmarrco
Copy link
Author

I was indeed talking about patch and not minor version, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants