[20.10 backport] update buildx to v0.6.1#562
Merged
thaJeztah merged 3 commits intodocker:20.10from Jul 30, 2021
Merged
Conversation
Member
Author
|
This will fail until #564 is merged |
c3f7237 to
9d7701f
Compare
Member
Author
|
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 <github@gone.nl>
(cherry picked from commit 5b9172b)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
release notes: https://github.com/docker/buildx/releases/tag/v0.6.0 Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit 7593a3f) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
9d7701f to
208a1f9
Compare
Member
|
I think docker/buildx#686 might be important. |
Member
Author
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?) |
crazy-max
reviewed
Jul 30, 2021
plugins/buildx.installer
Outdated
| GOPATH=$(go env GOPATH) | ||
| REPO=https://${PKG}.git | ||
| : "${BUILDX_COMMIT=v0.5.1}" | ||
| : "${BUILDX_COMMIT=v0.6.0}" |
Member
There was a problem hiding this comment.
Suggested change
| : "${BUILDX_COMMIT=v0.6.0}" | |
| : "${BUILDX_COMMIT=v0.6.1}" |
Ref #565
Member
Author
There was a problem hiding this comment.
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 <crazy-max@users.noreply.github.com> (cherry picked from commit 2a17e90) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Member
Author
|
@crazy-max updated to include #565; PTAL |
Member
Author
|
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. |
Member
Author
|
Bringing this one in, and will do a test-build to staging |
archlinux-github
pushed a commit
to archlinux/svntogit-community
that referenced
this pull request
Aug 4, 2021
- 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
archlinux-github
pushed a commit
to archlinux/svntogit-community
that referenced
this pull request
Aug 4, 2021
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
backport of #561 and #565
release notes: https://github.com/docker/buildx/releases/tag/v0.6.0