Skip to content

Commit cf784f9

Browse files
committed
ociregistry: do not use goexperiment build tag
The build failed for me on Go tip as of mid March: $ go test # cuelabs.dev/go/oci/ociregistry [cuelabs.dev/go/oci/ociregistry.test] ./iter_test.go:15:22: cannot range over SliceIter(slice) (value of type Seq[int]): requires go1.23 or later (-lang was set to go1.21; check go.mod) ./iter_test.go:25:25: cannot range over ErrorIter[string](err) (value of type Seq[string]): requires go1.23 or later (-lang was set to go1.21; check go.mod) FAIL cuelabs.dev/go/oci/ociregistry [build failed] I reckon the "or" build tag expression should work in principle, but currently it doesn't due to a design quirk. I've raised https://go.dev/issue/66399 to suggest an upstream change. For now, un-break the build; testing this file via Go tip is enough. Signed-off-by: Daniel Martí <[email protected]> Change-Id: I017a6437ee6d877ffa11de8be808f58da63fd7fc Reviewed-on: https://review.gerrithub.io/c/cue-labs/oci/+/1184828 Reviewed-by: Roger Peppe <[email protected]> TryBot-Result: CUE porcuepine <[email protected]>
1 parent 16e7651 commit cf784f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ociregistry/iter_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build go1.23 || goexperiment.rangefunc
1+
//go:build go1.23
22

33
package ociregistry
44

0 commit comments

Comments
 (0)