Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit ad04f7c

Browse files
committed
plugins/buildx: force go modules to use vendor mode
Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit cca0c0e) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 85c3e76e09696efe6b616d940f9e94ac9b7c4ec2 Component: packaging
1 parent d97f4c3 commit ad04f7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/packaging/plugins/buildx.installer

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ build() {
2121
# TODO: unmark `-tp` when no longer a technical preview
2222
LDFLAGS="-X ${PKG}/version.Version=$(git describe --match 'v[0-9]*' --always --tags)-tp-docker -X ${PKG}/version.Revision=$(git rev-parse HEAD) -X ${PKG}/version.Package=${PKG} -X main.experimental=1"
2323
set -x
24-
go build -o bin/docker-buildx -ldflags "${LDFLAGS}" ./cmd/buildx
24+
GOFLAGS=-mod=vendor go build -o bin/docker-buildx -ldflags "${LDFLAGS}" ./cmd/buildx
2525
)
2626
}
2727

0 commit comments

Comments
 (0)