mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
a464a3d51f
This `ENV` was added to the Dockerfile in b96093fa56
,
when the repository used per-architecture Dockerfiles, and some architectures needed
a different configuration.
Now that we use a multi-arch Dockerfile, and CI uses a Jenkinsfile, we can remove
this `ENV` from the Dockerfile, and set it in CI instead if needed.
Also updated the wording and fixed linting issues in hack/validate/gometalinter
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
14 lines
425 B
Bash
Executable file
14 lines
425 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -e -o pipefail
|
|
|
|
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
# CI platforms differ, so per-platform GOMETALINTER_OPTS can be set
|
|
# in the Jenkinsfile, otherwise let's just set a
|
|
# (somewhat pessimistic) default of 10 minutes.
|
|
: "${GOMETALINTER_OPTS=--deadline=10m}"
|
|
|
|
# shellcheck disable=SC2086
|
|
gometalinter \
|
|
${GOMETALINTER_OPTS} \
|
|
--config "${SCRIPTDIR}/gometalinter.json" ./...
|