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

Replace does not work if colon symbol is present #271

Open
angordeyev opened this issue Jul 7, 2023 · 1 comment
Open

Replace does not work if colon symbol is present #271

angordeyev opened this issue Jul 7, 2023 · 1 comment

Comments

@angordeyev
Copy link

An Elixir application has the version in configuration file in the following format:

...
[
      ...
      version: "1.0.0",
      ...
]
...

I use the following .bumpversion.cfg:

[bumpversion]
current_version = 1.0.0

[bumpversion:file:mix.exs]
search = version: "{current_version}"
replace = version: "{new_version}"

The result is:

...
[
      ...
      version: "version: "1.0.0"",
      ...
]
...

The expleted result is:

The result is:

...
[
      ...
      version: "1.0.1"",
      ...
]
...

I have tried to escape it with \: but it does not work either.

@kdeldycke
Copy link
Contributor

This issue has been solved by bump-my-version thanks to its transition to TOML-based configuration files.

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