diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 9d39acc2..628524e1 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -45,8 +45,10 @@ jobs: - uses: cachix/install-nix-action@v22 - uses: rrbutani/use-nix-shell-action@v1.1.0 + env: + HOME: /home/runner with: - file: shell.nix + file: shell.nix - name: Check if the chart follows a valid semver version run: | diff --git a/shell.nix b/shell.nix index d97bfa2c..d070f65a 100644 --- a/shell.nix +++ b/shell.nix @@ -18,6 +18,7 @@ pkgs.mkShell { yq-go ]; shellHook = '' + export HOME=${builtins.getEnv "HOME"} export GOPATH=$(pwd)/nix/.go export GOCACHE=$(pwd)/nix/.go/cache export TMPDIR=$(pwd)/nix/.tmp