aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2024-05-23 11:41:47 -0400
committerXe Iaso <me@xeiaso.net>2024-05-23 11:41:47 -0400
commit54bb74b2dc75af9ec1e34a396382b8558c1ef0a5 (patch)
treed4184dfcdf892e91a2427e6e6feff7fd9ed77272
parenta20e8412ebe2fabec8f1393357932bb06f362dd6 (diff)
downloadx-54bb74b2dc75af9ec1e34a396382b8558c1ef0a5.tar.xz
x-54bb74b2dc75af9ec1e34a396382b8558c1ef0a5.zip
bumperate: don't modify flake.nix, only modify .go.mod.sri and make direnv watch it
Signed-off-by: Xe Iaso <me@xeiaso.net>
-rw-r--r--.envrc1
-rwxr-xr-xbumperate.sh2
-rw-r--r--flake.nix2
3 files changed, 1 insertions, 4 deletions
diff --git a/.envrc b/.envrc
index 3550a30..66b5e68 100644
--- a/.envrc
+++ b/.envrc
@@ -1 +1,2 @@
use flake
+watch_file .go.mod.sri
diff --git a/bumperate.sh b/bumperate.sh
index 37173dd..2cbf3b7 100755
--- a/bumperate.sh
+++ b/bumperate.sh
@@ -6,5 +6,3 @@ rm -rf $OUT
go mod vendor -o $OUT
go run tailscale.com/cmd/nardump --sri $OUT > .go.mod.sri
rm -rf $OUT
-
-perl -pi -e "s,# nix-direnv cache busting line:.*,# nix-direnv cache busting line: $(cat .go.mod.sri)," flake.nix
diff --git a/flake.nix b/flake.nix
index e486d6c..cc5eaf1 100644
--- a/flake.nix
+++ b/flake.nix
@@ -1,5 +1,3 @@
-# nix-direnv cache busting line: sha256-EsfFTlyPnFw3627pAiAb6jOBIzC6YcL+1ql+Z6+99e0=
-
{
description = "/x/perimental code";