Skip to content

Commit 5bb88dc

Browse files
authored
Merge pull request #3412 from thaJeztah/fix_vendor
Some fixes for "make vendor"
2 parents 2b0e74c + 0d5b24b commit 5bb88dc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dockerfiles/Dockerfile.vendor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ RUN apk add --no-cache bash git rsync
88
WORKDIR /src
99

1010
FROM base AS vendored
11+
ENV GOPROXY=direct
1112
RUN --mount=target=/context \
1213
--mount=target=.,type=tmpfs \
1314
--mount=target=/go/pkg/mod,type=cache <<EOT

scripts/vendor

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@ go 1.16
2121
EOL
2222

2323
update() {
24-
(set -x ; go mod vendor -modfile=vendor.mod)
24+
(set -x ; go mod tidy -modfile=vendor.mod; go mod vendor -modfile=vendor.mod)
2525
}
2626

2727
validate() {
28-
(set -x ; go mod tidy -modfile=vendor.mod)
2928
diff=$(git status --porcelain -- vendor.mod vendor.sum vendor)
3029
if [ -n "$diff" ]; then
3130
echo >&2 'ERROR: Vendor result differs. Please vendor your package with "make -f docker.Makefile vendor"'

0 commit comments

Comments
 (0)