We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2b0e74c + 0d5b24b commit 5bb88dcCopy full SHA for 5bb88dc
2 files changed
dockerfiles/Dockerfile.vendor
@@ -8,6 +8,7 @@ RUN apk add --no-cache bash git rsync
8
WORKDIR /src
9
10
FROM base AS vendored
11
+ENV GOPROXY=direct
12
RUN --mount=target=/context \
13
--mount=target=.,type=tmpfs \
14
--mount=target=/go/pkg/mod,type=cache <<EOT
scripts/vendor
@@ -21,11 +21,10 @@ go 1.16
21
EOL
22
23
update() {
24
- (set -x ; go mod vendor -modfile=vendor.mod)
+ (set -x ; go mod tidy -modfile=vendor.mod; go mod vendor -modfile=vendor.mod)
25
}
26
27
validate() {
28
- (set -x ; go mod tidy -modfile=vendor.mod)
29
diff=$(git status --porcelain -- vendor.mod vendor.sum vendor)
30
if [ -n "$diff" ]; then
31
echo >&2 'ERROR: Vendor result differs. Please vendor your package with "make -f docker.Makefile vendor"'
0 commit comments