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

Commit a3d25bb

Browse files
committed
Pin buildx plugin to v0.3.0, and allow overriding
Commit 9a5aabd removed the fixed version for this plugin, and changed it to install from "master", which made the build non-reproducible. This patch pins the plugin to a specific tag/release again, but allow overriding by setting the `BUILDX_COMMIT` env-var. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit ffee8a3) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 5c81ea30607f012228716c5107c8fbc81a9b0c67 Component: packaging
1 parent 8826447 commit a3d25bb

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)