Skip to content

Commit

Permalink
Set GOMODCACHE env var
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorwhitney committed Nov 16, 2023
1 parent 316ae4e commit b33a215
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nix/packages/loki.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ pkgs.stdenv.mkDerivation {

buildPhase = ''
export GOCACHE=$TMPDIR/go-cache
export GOMODCACHE=$TMPDIR/gomodcache
make clean loki
'';

doCheck = false;
checkPhase = ''
export GOCACHE=$TMPDIR/go-cache
export GOMODCACHE=$TMPDIR/gomodcache
export GOLANGCI_LINT_CACHE=$TMPDIR/go-cache
make lint test
'';
Expand Down

0 comments on commit b33a215

Please sign in to comment.