Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions hack/presubmit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,9 @@ set -o pipefail

PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"

# We can't install in the current directory without changing the current module.
TMP_DIR="$(mktemp -d)"
export PATH="${PATH}:${TMP_DIR}/bin"
export GOPATH="${TMP_DIR}"
pushd ${TMP_DIR}
trap popd EXIT
go install honnef.co/go/tools/cmd/staticcheck@latest
popd

pushd ${PROJECT_ROOT}
trap popd EXIT

staticcheck ./pkg/...

# Verify that all source files are correctly formatted.
find . -name "*.go" | grep -v vendor/ | xargs gofmt -d -e -l

Expand Down
2 changes: 1 addition & 1 deletion pkg/v1/daemon/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ func (i *image) computeImageConfig(config *specs.DockerOCIImageConfig) v1.Config
User: config.User,
Volumes: config.Volumes,
WorkingDir: config.WorkingDir,
//lint:ignore SA1019 this is erroneously deprecated, as windows uses it
//nolint:staticcheck // SA1019 this is erroneously deprecated, as windows uses it
ArgsEscaped: config.ArgsEscaped,
StopSignal: config.StopSignal,
Shell: config.Shell,
Expand Down
Loading