-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make version setting script work with both main and flask (#9780)
- Fix the release number search and replace for Flask - fix the package.json parsing with Jq and sponge (thanks @legobeat) - fix sed -e commands to be more robust - make the syntax specifically work for Ubuntu Sed version as it's the CI target (thanks @legobeat) - add capture group and back ref to prevent repeating the key string - check for spaces before the key (that's what actually broke the script as `VERSION_NUMBER` matches `VERSION_NUMBER` and `FLASK_VERSION_NUMBER`. With a space before, there's no confusion) - move sed -i command as it was creating backups and mistakingly use "-e" as the suffix - Extract file names in constants - improve console output messages to actually match steps - add check that `VERSION_NUMBER` and `FLASK_VERSION_NUMBER` are similar before starting. They should be. - remove dead code. Fixes #9770
- Loading branch information
1 parent
b013c71
commit 63e9ff9
Showing
1 changed file
with
38 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters