-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update Cargo.toml and fixtures to v0.34.0 * Update Cargo.lock prior to v0.34.0 * flake.lock: Update Flake lock file updates: • Updated input 'nixpkgs': 'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.737779%2Brev-9abb87b552b7f55ac8916b6fc9e5cb486656a2f3/019463c0-2408-72ce-9579-5965e6e5e05b/source.tar.gz?narHash=sha256-qwpCtZhSsSNQtK4xYGzMiyEDhkNzOCz/Vfu4oL2ETsQ%3D' (2025-01-13) → 'https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.738172%2Brev-eb62e6aa39ea67e0b8018ba8ea077efe65807dc8/01946c30-5ff9-7d30-acd1-28101cd9be64/source.tar.gz?narHash=sha256-uQ%2BNQ0/xYU0N1CnXsa2zghgNaOPxWpMJXSUJJ9W7140%3D' (2025-01-14) * Add prepare-release.sh * checkout -b -> checkout -B * Update Cargo.lock first, then Cargo.toml * Use toml-cli for updating Cargo.toml * fixup: correct order and update commit messages --------- Co-authored-by: Cole Helbling <[email protected]>
- Loading branch information
Showing
9 changed files
with
62 additions
and
20 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/sh | ||
|
||
set -eux | ||
|
||
version=$1 | ||
|
||
if ! echo "$version" | grep -q "^[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+$"; then | ||
echo "argv[1] needs to be a version, in x.y.z format." | ||
exit 1 | ||
fi | ||
|
||
git fetch | ||
git checkout origin/main | ||
git checkout -B "release-v$version" | ||
|
||
nix flake update --commit-lock-file | ||
|
||
cargo update --aggressive | ||
git add Cargo.lock | ||
git commit -m "Update Cargo.lock dependencies" | ||
|
||
toml set ./Cargo.toml package.version "$version" > Cargo.toml.next | ||
mv Cargo.toml.next Cargo.toml | ||
git add Cargo.toml | ||
|
||
cargo fetch | ||
git add Cargo.lock | ||
|
||
for fname in $(find ./tests/fixtures -name '*.json'); do | ||
cat "$fname" \ | ||
| jq '.version = $version | .diagnostic_data.version = $version' --arg version "$version" \ | ||
> "$fname.next" | ||
mv "$fname.next" "$fname" | ||
git add "$fname" | ||
done | ||
|
||
git commit -m "Release v$version" | ||
|
||
cargo outdated --ignore-external-rel --aggressive | ||
|
||
echo "Complete" |
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
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
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