question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not all versions in files get replaced

See original GitHub issue

Description

Not all versions are replaced anymore.

In my project I create an Docker image based on the version tag and replace the version in a docker-compose file. However this version is not replaced since recent changes:

https://github.com/commitizen-tools/commitizen/commit/cd7018ebae89b76d9174d103407d140a1dd7bf09#diff-ed9bead31489109a8441fbfb00d2ddec00198489b0702bab164825c2d3bd9b4f

Regex is invalid for detecting versions.

Steps to reproduce

  1. Create a file e.g. docker-compose.py
  2. Add version for an image: image: my-container:v0.11.1
  3. Bump version using commitizen

Current behavior

Version is not updated in file

Desired behavior

Version is also updated in file

Environment

https://github.com/commitizen-tools/commitizen/commit/cd7018ebae89b76d9174d103407d140a1dd7bf09#diff-ed9bead31489109a8441fbfb00d2ddec00198489b0702bab164825c2d3bd9b4f

bump.py:192

  • commitizen version: 2.17.0
  • python version: 3.8.7
  • operating system: Linux

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Peter-Slumpcommented, Apr 22, 2021

Hi @Woile I just ran the CI/CD pipeline based on 2.17.3 however it was not fixed there. Please view my PR to find out what the exact issue is.

0reactions
woilecommented, Apr 22, 2021

Thanks @Peter-Slump !! We have also released version 2.17.3 which in theory should finally fix this, could you check first with that version, if it solves your issue.

Thanks 👍🏻

Read more comments on GitHub >

github_iconTop Results From Across the Web

Version History Lost When Replacing / Overwriting to Teams
Hello, I rely on having version history of documents stored in Sharepoint, but I discovered today with a certain method of “overwriting” or...
Read more >
【Fixed 2023】5 Ways to Recover Overwritten Files from ...
Method 1: How to Undo an Overwritten File Replaced from the Previous Versions? · The file has to have previous versions from a...
Read more >
Completely replacing a file (not updating) but keeping the ...
When you are uploading a file to SharePoint Document library and select the Replace option, it will not erase all version history and...
Read more >
How to Recover Earlier Versions of Files - WIRED
How to Recover Earlier Versions of Files · Right-click on the file or folder you want. · Select Restore previous versions from the...
Read more >
How to Recover Overwritten Files on Windows 10
You're working and save over a file, can you get it back? The answer is yes, there are multiple ways to recover overwritten...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found