Skip to content

Commit 14b0687

Browse files
wesmclaude
andauthored
Update nix flake for v0.11.0 (#220)
## Summary - Update msgvault version in `flake.nix` to `0.11.0` - Fix `update-nix-flake.sh` sed command that replaced all `version = "..."` strings in `flake.nix`, including the pinned Go version — scope it to only the msgvault `pname` block The automated update failed because sed turned Go `1.25.8` into `0.11.0`, causing nix to try downloading `go0.11.0.src.tar.gz` (404). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f6ed638 commit 14b0687

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)