improved go caching with nix

Co-authored-by: Gelu Vrabie <[email protected]>
This commit is contained in:
Evan Quiney
2025-08-15 15:24:58 +01:00
committed by GitHub
co-authored by Gelu Vrabie
parent a2a37c0ebe
commit ea3eeea826
2 changed files with 5 additions and 6 deletions
+2 -5
View File
@@ -62,11 +62,8 @@
make-shells.default = {
# Go 1.24 compiler align with go.mod
packages = [ pkgs.go_1_24 ];
# TODO: change this into exported env via nix directly???
shellHook = ''
export GOPATH=$(mktemp -d)
'';
shellHook = "export GOPATH=$FLAKE_ROOT/.go_cache";
};
};
}
+3 -1
View File
@@ -4,6 +4,9 @@ __pycache__
hosts_*.json
# go cache is project local but not tracked
.go_cache
# hide direnv stuff
.direnv/
# TODO figure out how to properly solve the issue with these target directories showing up
@@ -21,4 +24,3 @@ rust/Cargo.lock
# Says this symlink should be git-ignored https://github.com/juspay/just-flake
just-flake.just
.DS_Store