Repository: google/pprof (language: go)

Issue:
CI failing on staticcheck version
Failing on HEAD for all `tip` configurations (linux and macos), when trying to invoke `staticcheck`:

https://github.com/google/pprof/runs/4063340955
```
++ staticcheck github.com/google/pprof github.com/google/pprof/driver github.com/google/pprof/fuzz github.com/google/pprof/internal/binutils github.com/google/pprof/internal/driver github.com/google/pprof/internal/elfexec github.com/google/pprof/internal/graph github.com/google/pprof/internal/measurement github.com/google/pprof/internal/plugin github.com/google/pprof/internal/proftest github.com/google/pprof/internal/report github.com/google/pprof/internal/symbolizer github.com/google/pprof/internal/symbolz github.com/google/pprof/internal/transport github.com/google/pprof/profile github.com/google/pprof/third_party/d3 github.com/google/pprof/third_party/d3flamegraph github.com/google/pprof/third_party/svgpan
-: cannot import "internal/cpu" (unknown iexport format version 2), export data is newer version - update tool (compile)
-: cannot import "internal/goarch" (unknown iexport format version 2), export data is newer version - update tool (compile)
Error: Process completed with exit code 1.
```

It seems like a simple version issue with `staticcheck` -- probably because we don't use `actions/setup-go@v2` in the `tip` configuration [here](https://github.com/google/pprof/blob/master/.github/workflows/ci.yaml#L112) and instead fetch lint tools [manually](https://github.com/google/pprof/blob/master/.github/workflows/ci.yaml#L138). 


Discussion / hints:
Ah, from dominikh/go-tools#1107, the `tip` compiler is unsupported and not expected to work with `staticcheck`.

I'll just disable it in the CI then. We already do it for the latest two versions of the compiler (which are supported) anyway.

Fix patch:
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 9b433c80c..396a38304 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -55,6 +55,7 @@ jobs:
           cd $HOME/gotip/src
           ./make.bash
           echo "GOROOT=$HOME/gotip" >> $GITHUB_ENV
+          echo "RUN_STATICCHECK=false" >> $GITHUB_ENV
           echo "$HOME/gotip/bin:$PATH" >> $GITHUB_PATH
 
       - name: Checkout the repo
@@ -122,6 +123,7 @@ jobs:
           cd $HOME/gotip/src
           ./make.bash
           echo "GOROOT=$HOME/gotip" >> $GITHUB_ENV
+          echo "RUN_STATICCHECK=false" >> $GITHUB_ENV
           echo "$HOME/gotip/bin" >> $GITHUB_PATH
 
       - name: Checkout the repo


Test patch:
diff --git a/test.sh b/test.sh
index 50b652449..0ecb53aa0 100755
--- a/test.sh
+++ b/test.sh
@@ -23,7 +23,9 @@ echo "mode: $MODE" > coverage.txt
 # All packages.
 PKG=$(go list ./...)
 
-staticcheck $PKG
+if [ "$RUN_STATICCHECK" != "false" ]; then
+  staticcheck $PKG
+fi
 
 # Packages that have any tests.
 PKG=$(go list -f '{{if .TestGoFiles}} {{.ImportPath}} {{end}}' ./...)