-
Notifications
You must be signed in to change notification settings - Fork 160
[20.10 backport] update buildx to v0.6.1 #562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[20.10 backport] update buildx to v0.6.1 #562
Conversation
|
This will fail until #564 is merged |
c3f7237 to
9d7701f
Compare
|
Temporarily included #564 to verify it works with that PR (I'll rebase after that's merged) |
The buildkit vendor in buildx contains an incorrect `//import` comment, which
causes compile to fail if go modules are disabled.
Without `GO111MODULE` set (but with `-mod=vendor`:
echo $GO111MODULE
export PKG=github.com/docker/buildx
export LDFLAGS="-X ${PKG}/version.Version=$(git describe --match 'v[0-9]*' --always --tags) -X ${PKG}/version.Revision=$(git rev-parse HEAD) -X ${PKG}/version.Package=${PKG}"
GOFLAGS=-mod=vendor go build -o bin/docker-buildx -ldflags "${LDFLAGS}" ./cmd/buildx
bin/docker-buildx version
github.com/docker/buildx v0.6.0 d9ee3b134cbc2d09513fa7fee4176a3919e05887
When setting `GO111MODULE=off`, it fails on the incorrect import path in the
vendored file (looks like GO111MODULE=on ignores import-path comments?):
export GO111MODULE=off
root@5a55ec1c1eed:/go/src/github.com/docker/buildx# GOFLAGS=-mod=vendor go build -o bin/docker-buildx -ldflags "${LDFLAGS}" ./cmd/buildx
vendor/github.com/moby/buildkit/client/client.go:20:2: code in directory /go/src/github.com/docker/buildx/vendor/github.com/moby/buildkit/util/tracing/otlptracegrpc expects import "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc"
vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/connection/connection.go:33:2: found import comments "go.opentelemetry.io/otel/exporters/otlp/internal/otlpconfig" (options.go) and "go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/otlpconfig" (optiontypes.go) in /go/src/github.com/docker/buildx/vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/otlpconfig
Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit 5b9172b)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
release notes: https://github.com/docker/buildx/releases/tag/v0.6.0 Signed-off-by: Sebastiaan van Stijn <[email protected]> (cherry picked from commit 7593a3f) Signed-off-by: Sebastiaan van Stijn <[email protected]>
9d7701f to
208a1f9
Compare
|
I think docker/buildx#686 might be important. |
Ah, right, makes sense. I think I have most other PRs merged for 20.10.8; do you know if buildx v0.6.1 should be released soon? (in time to make it for 20.10.8 if we want to release that on Monday/Tuesday?) |
plugins/buildx.installer
Outdated
| GOPATH=$(go env GOPATH) | ||
| REPO=https://${PKG}.git | ||
| : "${BUILDX_COMMIT=v0.5.1}" | ||
| : "${BUILDX_COMMIT=v0.6.0}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| : "${BUILDX_COMMIT=v0.6.0}" | |
| : "${BUILDX_COMMIT=v0.6.1}" |
Ref #565
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll cherry pick the other commit as well 👍
release notes: https://github.com/docker/buildx/releases/tag/v0.6.1 Signed-off-by: CrazyMax <[email protected]> (cherry picked from commit 2a17e90) Signed-off-by: Sebastiaan van Stijn <[email protected]>
|
@crazy-max updated to include #565; PTAL |
|
Interesting error in Jenkins (not related to this change, but posting for discoverability); docker run --rm -v $(pwd):/workspace busybox chown -R "$(id -u):$(id -g)" /workspace
+ pwd
+ id -u
+ id -g
+ docker run --rm -v /home/ubuntu/workspace/docker-ce-packaging_PR-562:/workspace busybox chown -R 1000:1000 /workspace
Unable to find image 'busybox:latest' locally
latest: Pulling from library/busybox
b71f96345d44: Pulling fs layer
b71f96345d44: Verifying Checksum
b71f96345d44: Download complete
b71f96345d44: Pull complete
Digest: sha256:0f354ec1728d9ff32edcd7d1b8bbdfc798277ad36120dc3dc683be44524c8b60
Status: Downloaded newer image for busybox:latest
docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: process_linux.go:508: setting cgroup config for procHooks process caused: error while setting unit properties: Unit docker-02f6e99b878a98640552ea113c1b3a23a518d67058a40945c18bd0bd0dc85eb8.scope not found.: unknown. |
|
Bringing this one in, and will do a test-build to staging |
- Bump to docker moby 20.10.8 - Drop deprecated and archived app plugin (docker/docker-ce-packaging#548) - Upgrade buildx to 0.6.1 (docker/docker-ce-packaging#562) git-svn-id: file:///srv/repos/svn-community/svn@993629 9fca08f4-af9d-4005-b8df-a31f2cc04f65
- Bump to docker moby 20.10.8 - Drop deprecated and archived app plugin (docker/docker-ce-packaging#548) - Upgrade buildx to 0.6.1 (docker/docker-ce-packaging#562) git-svn-id: file:///srv/repos/svn-community/svn@993629 9fca08f4-af9d-4005-b8df-a31f2cc04f65
backport of #561 and #565
release notes: https://github.com/docker/buildx/releases/tag/v0.6.0