Skip to content

Commit

Permalink
Update buildx to 0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed Jun 30, 2023
1 parent af570f4 commit 78c6fb4
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 14 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,17 @@ jobs:
- name: Prepare schroot
run: |
docker-image-to-sbuild-schroot --pull "$dist.tar" "debian:$dist"
img="debian:$dist"
docker pull "$img"
if [ "$dist" != 'unstable' ]; then
# add my personal backports (especially for newer Go versions)
wget -O tianon-backports.sources "https://apt.tianon.xyz/backports/dists/${dist%-backports}/tianon-backports.sources"
echo "FROM $img" > Dockerfile
echo 'COPY tianon-backports.sources /etc/apt/sources.list.d/' >> Dockerfile
img="tianon-backports:$dist"
docker build --tag "$img" .
fi
docker-image-to-sbuild-schroot "$dist.tar" "$img"
- name: Prepare sbuild
run: |
Expand Down
7 changes: 4 additions & 3 deletions moby-buildx/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
moby-buildx (0.10.5-1) UNRELEASED; urgency=medium
moby-buildx (0.11.0-1) UNRELEASED; urgency=medium

* Update to 0.10.5
* Update to 0.11.0
- update to Go 1.20
* Add patch to fix local image references on Docker's containerd integration

-- Tianon Gravi <[email protected]> Tue, 06 Jun 2023 16:26:36 -0700
-- Tianon Gravi <[email protected]> Tue, 13 Jun 2023 17:03:10 -0700

moby-buildx (0.10.4-1) unstable; urgency=medium

Expand Down
2 changes: 1 addition & 1 deletion moby-buildx/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Section: admin
Priority: optional
Maintainer: Tianon Gravi <[email protected]>
Build-Depends: debhelper-compat (= 13),
golang-1.19-go | golang-go (>= 2:1.19~) | golang-any (>= 2:1.19~)
golang-1.20-go | golang-go (>= 2:1.20~) | golang-any (>= 2:1.20~)
Rules-Requires-Root: no
Homepage: https://github.com/docker/buildx
Vcs-Browser: https://github.com/tianon/debian-moby
Expand Down
21 changes: 17 additions & 4 deletions moby-buildx/debian/patches/classic-plain-progress.patch
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ Author: Tianon Gravi <[email protected]>
Applied-Upstream: 👀 (no, but *might* be acceptable if it could be optional)

diff --git a/vendor/github.com/moby/buildkit/util/progress/progressui/display.go b/vendor/github.com/moby/buildkit/util/progress/progressui/display.go
index edbdaaa7..05aa13f0 100644
index 4ceb4f52..7b1fde74 100644
--- a/vendor/github.com/moby/buildkit/util/progress/progressui/display.go
+++ b/vendor/github.com/moby/buildkit/util/progress/progressui/display.go
@@ -542,9 +542,14 @@ func (t *trace) update(s *client.SolveStatus, termWidth int) {
@@ -568,9 +568,14 @@ func (t *trace) update(s *client.SolveStatus, termWidth int) {
}
i := 0
complete := split(l.Data, byte('\n'), func(dt []byte) {
Expand All @@ -21,12 +21,25 @@ index edbdaaa7..05aa13f0 100644
ts := time.Duration(0)
if ival := v.mostRecentInterval(); ival != nil {
ts = l.Timestamp.Sub(*ival.start)
@@ -557,6 +562,8 @@ func (t *trace) update(s *client.SolveStatus, termWidth int) {
@@ -583,6 +588,8 @@ func (t *trace) update(s *client.SolveStatus, termWidth int) {
prec = 2
}
v.logs = append(v.logs, []byte(fmt.Sprintf("#%d %s %s", v.index, fmt.Sprintf("%.[2]*[1]f", sec, prec), dt)))
v.logs = append(v.logs, []byte(fmt.Sprintf("%s %s", fmt.Sprintf("%.[2]*[1]f", sec, prec), dt)))
+ */
+ v.logs = append(v.logs, dt)
}
i++
})
diff --git a/vendor/github.com/moby/buildkit/util/progress/progressui/printer.go b/vendor/github.com/moby/buildkit/util/progress/progressui/printer.go
index 338079d4..432cdbe3 100644
--- a/vendor/github.com/moby/buildkit/util/progress/progressui/printer.go
+++ b/vendor/github.com/moby/buildkit/util/progress/progressui/printer.go
@@ -147,7 +147,7 @@ func (p *textMux) printVtx(t *trace, dgst digest.Digest) {
l = l[v.logsOffset:]
fmt.Fprintf(p.w, "%s", l)
} else {
- fmt.Fprintf(p.w, "#%d %s", v.index, []byte(l))
+ fmt.Fprintf(p.w, "%s", []byte(l))
}

if i != len(v.logs)-1 || !v.logsPartial {
6 changes: 3 additions & 3 deletions moby-buildx/debian/patches/default-plain-progress.patch
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ Author: Tianon Gravi <[email protected]>
Applied-Upstream: nack

diff --git a/util/progress/printer.go b/util/progress/printer.go
index 1247a7aa..40269e02 100644
index fdc74d91..c6721730 100644
--- a/util/progress/printer.go
+++ b/util/progress/printer.go
@@ -88,7 +88,7 @@ func NewPrinter(ctx context.Context, w io.Writer, out console.File, mode string)
@@ -103,7 +103,7 @@ func NewPrinter(ctx context.Context, w io.Writer, out console.File, mode string,
switch mode {
case PrinterModeQuiet:
w = io.Discard
Expand All @@ -16,7 +16,7 @@ index 1247a7aa..40269e02 100644
c = cons
} else {
diff --git a/vendor/github.com/moby/buildkit/util/progress/progresswriter/printer.go b/vendor/github.com/moby/buildkit/util/progress/progresswriter/printer.go
index c96c4525..f7cc1f60 100644
index c400e412..7f47de46 100644
--- a/vendor/github.com/moby/buildkit/util/progress/progresswriter/printer.go
+++ b/vendor/github.com/moby/buildkit/util/progress/progresswriter/printer.go
@@ -72,7 +72,7 @@ func NewPrinter(ctx context.Context, out console.File, mode string) (Writer, err
Expand Down
4 changes: 2 additions & 2 deletions moby-buildx/debian/rules
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/make -f

# prefer Go 1.19
export PATH := /usr/lib/go-1.19/bin:$(PATH)
# prefer Go 1.20
export PATH := /usr/lib/go-1.20/bin:$(PATH)

# circumvent a few problematic (for Debian) Go features inspired by dh-golang
export GOCACHE := $(CURDIR)/.gocache
Expand Down

0 comments on commit 78c6fb4

Please sign in to comment.