Skip to content

Commit af0f00e

Browse files
authored
Merge branch 'main' into main
2 parents 848f315 + 8d9c9ef commit af0f00e

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

hack/presubmit.sh

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,9 @@ set -o pipefail
2020

2121
PROJECT_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-
3223
pushd ${PROJECT_ROOT}
3324
trap popd EXIT
3425

35-
staticcheck ./pkg/...
36-
3726
# Verify that all source files are correctly formatted.
3827
find . -name "*.go" | grep -v vendor/ | xargs gofmt -d -e -l
3928

pkg/v1/daemon/image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)