-
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
Support processing a file multiple times #111
Comments
So this becomes valid: [bumpversion:file_myfile_first_pass:version.txt] [bumpversion:file_myfile_second_pass:version.txt] Fixes c4urself#111 Inspired by andrivet#3
There's a Helm question on this as well, in general it feels like a bit of a code smell if you have multiple variables that reference a version in a single file and so I think it makes sense to make it a duplicate action in the .bumpversion.cfg as well; that is, have multiple sections for each time you want to search/replace in the same file. |
I'll rebase once the Python 2.7 drop is merged. |
So this becomes valid: [bumpversion:file_myfile_first_pass:version.txt] [bumpversion:file_myfile_second_pass:version.txt] Fixes c4urself#111 Inspired by andrivet#3
So this becomes valid: [bumpversion:file_myfile_first_pass:version.txt] [bumpversion:file_myfile_second_pass:version.txt] Fixes c4urself#111 Inspired by andrivet#3
Thoughts about the new |
So this becomes valid: [bumpversion:file(first pass):version.txt] [bumpversion:file(second-pass):version.txt] Fixes c4urself#111 Inspired by andrivet#3
This does not work yet as intended. see c4urself/bump2version#119 and c4urself/bump2version#111
So this becomes valid: [bumpversion:file(first pass):version.txt] [bumpversion:file(second-pass):version.txt] Fixes c4urself#111 Inspired by andrivet#3
For a certain file I needed to have two different serializations.
Turns out you can do that using
bumpversion.cfg
as long as the file name is written differently each time. I'm using a./
prefix here.Is this something we should document? I think this can solve #43 and #4, although it's perhaps not a very intuitive solution for those issues.
Thought: we could extend the
[bumpversion:file]
syntax to support multiple editions to make this more readable, likeThe text was updated successfully, but these errors were encountered: