Skip to content

Commit 79ff3b4

Browse files
wesmclaude
andcommitted
Update nix flake for v0.11.0
Fix update-nix-flake.sh sed command that replaced all version strings in flake.nix, including the pinned Go version. Scope the replacement to only the msgvault pname block. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f6ed638 commit 79ff3b4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
in
2828
(pkgs.buildGoModule.override { go = go_pinned; }) {
2929
pname = "msgvault";
30-
version = "0.0.0-dev";
30+
version = "0.11.0";
3131
src = ./.;
3232
vendorHash = "sha256-o7yjPy1pDkD6Ia1H/4Ny/GYqfwv4Vbsd86bQJY6IiVo=";
3333
proxyVendor = true;

scripts/update-nix-flake.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ if [ -n "$VERSION_TAG" ]; then
4646
exit 1
4747
fi
4848
echo "==> Updating version to $VERSION..."
49-
sed -i.bak -E "s/version = \"[^\"]+\"/version = \"$VERSION\"/" flake.nix
49+
# Only replace the msgvault version (after pname), not the Go version
50+
sed -i.bak -E '/pname = "msgvault"/,/version = "[^"]+"/ s/version = "[^"]+"/version = "'"$VERSION"'"/' flake.nix
5051
rm -f flake.nix.bak
5152
fi
5253

0 commit comments

Comments
 (0)