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

Commit 5198aeb

Browse files
authored
[19.03 backport] Pin buildx plugin to v0.3.0, and allow overridi… (#382)
[19.03 backport] Pin buildx plugin to v0.3.0, and allow overriding Upstream-commit: fc942130a1387479f40ac7b8ce71594810f0f4b2 Component: packaging
2 parents daefef5 + a3d25bb commit 5198aeb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

components/packaging/plugins/buildx.installer

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ source "$(dirname "$0")/.common"
66
PKG=github.com/docker/buildx
77
GOPATH=$(go env GOPATH)
88
REPO=https://${PKG}.git
9-
COMMIT=master
9+
: "${BUILDX_COMMIT=v0.3.0}"
1010
DEST=${GOPATH}/src/${PKG}
1111

1212
build() {
@@ -16,7 +16,7 @@ build() {
1616
(
1717
cd "${DEST}"
1818
git fetch --all
19-
git checkout -q "${COMMIT}"
19+
git checkout -q "${BUILDX_COMMIT}"
2020
local LDFLAGS
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"

0 commit comments

Comments
 (0)