improved go caching with nix
Co-authored-by: Gelu Vrabie <[email protected]>
This commit is contained in:
committed by
GitHub
co-authored by
Gelu Vrabie
parent
a2a37c0ebe
commit
ea3eeea826
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user