-
Notifications
You must be signed in to change notification settings - Fork 132
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
Question: how to use parse to deal only with major version? #113
Comments
I think you should be using |
I just wrote an example config that does exactly this in #43 . Here it is, adapted to your situation and verified to work...
Testing it out:
|
Thanks a bunch for working up this example! I will do the README PR, later this week. I promise! :) |
@florisla I'm ready to add a "go.mod" example to the project's README file. I think there are two options for this:
I'm sort of leaning toward #2. Do you have a preference? |
I would go for #2 and move the examples to a separate file (or a repository folder) once we have more of them. |
Hi, after discovering this more up-to-date fork of the original bumpversion project, I'm in the process of switching over to it and I have a question.
I already use bumpversion to maintain version #'s in a few files, where the version # is the full version # (e.g. 3.2.5). I have a scenario where I want to maintain only the major version # within a go.mod file. Within this file I have a module directive like this:
where "3" represents the current major version of the package. I'd like to be able to configure bumpversion to bump this to "v4" when the next major version is created.
It looks like I could maybe use a combination of the "parse" and "search" directives within a
[bumpversion:file:...]
section in my cfg file. Anyone done this before?It would be great if the README contained an example of this (after figuring this out, I would be happy to submit a PR for that).
Thanks in advance!
The text was updated successfully, but these errors were encountered: