fix(bump-version): update default.nix version (#502)

- Add missing support for scripted default.nix version update to
  bump-version.sh
This commit is contained in:
Aodhan Hayter
2025-12-12 16:06:32 -07:00
committed by GitHub
parent a4f0b699d7
commit 322f734010
3 changed files with 22 additions and 3 deletions

View File

@@ -136,3 +136,13 @@ jobs:
exit 1
fi
echo "✅ Help text first line is correct"
- name: Verify default.nix package version matches bd program version
run: |
BD_VERSION=$(grep 'Version = ' cmd/bd/version.go | sed 's/.*"\(.*\)".*/\1/')
NIX_BD_VERSION=$(grep 'version = ' default.nix | sed 's/.*"\(.*\)".*/\1/')
if [ "$BD_VERSION" != "$NIX_BD_VERSION" ]; then
echo "❌ default.nix version ($NIX_BD_VERSION) != version.go ($BD_VERSION)"
echo "Run: scripts/bump-version.sh to sync default.nix"
exit 1
fi
echo "✅ default.nix version matches: $BD_VERSION"