File tree Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Expand file tree Collapse file tree 2 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -20,20 +20,9 @@ set -o pipefail
2020
2121PROJECT_ROOT=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) /.." && pwd) "
2222
23- # We can't install in the current directory without changing the current module.
24- TMP_DIR=" $( mktemp -d) "
25- export PATH=" ${PATH} :${TMP_DIR} /bin"
26- export GOPATH=" ${TMP_DIR} "
27- pushd ${TMP_DIR}
28- trap popd EXIT
29- go install honnef.co/go/tools/cmd/staticcheck@latest
30- popd
31-
3223pushd ${PROJECT_ROOT}
3324trap popd EXIT
3425
35- staticcheck ./pkg/...
36-
3726# Verify that all source files are correctly formatted.
3827find . -name " *.go" | grep -v vendor/ | xargs gofmt -d -e -l
3928
Original file line number Diff line number Diff line change @@ -312,7 +312,7 @@ func (i *image) computeImageConfig(config *specs.DockerOCIImageConfig) v1.Config
312312 User : config .User ,
313313 Volumes : config .Volumes ,
314314 WorkingDir : config .WorkingDir ,
315- //lint:ignore SA1019 this is erroneously deprecated, as windows uses it
315+ //nolint:staticcheck // SA1019 this is erroneously deprecated, as windows uses it
316316 ArgsEscaped : config .ArgsEscaped ,
317317 StopSignal : config .StopSignal ,
318318 Shell : config .Shell ,
You can’t perform that action at this time.
0 commit comments