this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

cmd/cue: make tests pass with Go at tip (1.27) again

The new compress/flate algorithm as used by archive/zip
causes slight changes to the compressed module archives.

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I4bc3b381bd47e7fc28d9c65e01982122be2254c8
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1235756
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>

+6 -2
+6 -2
cmd/cue/cmd/testdata/script/modmirror_initial.txtar
··· 5 5 # smoke-test the dry-run output. 6 6 exec cue mod mirror --dry-run --to $MEMREGISTRY example.com 7 7 stdout '^mirroring baz.org@v0.5.0$' 8 - stdout '^push .*/baz.org@sha256:6a99876cf4d65e06d0d7ce3e5e7a8217d919f0b603c47d39b0ecf7db5299d85a \[355 bytes\]$' 9 - stdout '^tag .*/baz.org:v0.5.0@sha256:c145b84adf1458ec694b142ba85cd4a39aec82c1b31936694e0ca0abfc99a4fc$' 8 + # Go 1.27 brings a new compress/flate algorithm in https://go.dev/cl/707355, 9 + # which is faster but changes the resulting compressed zips. 10 + [!go1.27] stdout '^push .*/baz.org@sha256:6a99876cf4d65e06d0d7ce3e5e7a8217d919f0b603c47d39b0ecf7db5299d85a \[355 bytes\]$' 11 + [go1.27] stdout '^push .*/baz.org@sha256:3511ef8f3d2017fe5ba11fdea01b8e5d2446e5f56f295d471ec21409ed83d30c \[357 bytes\]$' 12 + [!go1.27] stdout '^tag .*/baz.org:v0.5.0@sha256:c145b84adf1458ec694b142ba85cd4a39aec82c1b31936694e0ca0abfc99a4fc$' 13 + [go1.27] stdout '^tag .*/baz.org:v0.5.0@sha256:acd2edc15c85c43fb1b2792b06ee15d78c016474f3cbceec40ed20108251ce92$' 10 14 11 15 exec cue mod mirror --to $MEMREGISTRY example.com 12 16 cmp stdout want-mirror1-stdout