Skip to content

Fix: bump_dependency now explicitely update all occurrences#14546

Merged
alex merged 1 commit intopyca:mainfrom
trail-of-forks:dm/simplify-update-dep
Mar 26, 2026
Merged

Fix: bump_dependency now explicitely update all occurrences#14546
alex merged 1 commit intopyca:mainfrom
trail-of-forks:dm/simplify-update-dep

Conversation

@DarkaMaul
Copy link
Copy Markdown
Contributor

Follow-up of #14541.

The bump_dependency.py script accidentally updated all matching versions, but only in the case where the first occurrence needed to be updated.

The new version searches for all occurrences of the pattern, and updates if there is at least one version number that needs to be bumped.

Note: I tried another approach to define the version number once, but we can't use env variables in matrices, so we would have to use a YAML anchor for this... And I believe we should avoid YAML anchors, if strictly not needed.

@DarkaMaul DarkaMaul changed the title Fix: bump_dependency now explicitely update all occurences Fix: bump_dependency now explicitely update all occurrences Mar 26, 2026
@alex alex merged commit b6ced6e into pyca:main Mar 26, 2026
67 checks passed
@alex
Copy link
Copy Markdown
Member

alex commented Mar 26, 2026

@DarkaMaul oops, I think there's a regression here: https://github.com/pyca/cryptography/actions/runs/23589119353/job/68689589216 can you take a look?

DarkaMaul added a commit to trail-of-forks/cryptography that referenced this pull request Mar 26, 2026
DarkaMaul added a commit to trail-of-forks/cryptography that referenced this pull request Mar 26, 2026
DarkaMaul added a commit to trail-of-forks/cryptography that referenced this pull request Mar 26, 2026
alex pushed a commit that referenced this pull request Mar 26, 2026
* Fix regression in #14546

* Update current_version
@DarkaMaul DarkaMaul deleted the dm/simplify-update-dep branch March 27, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants