containers / image

Work with containers' images
Apache License 2.0
862 stars 376 forks source link

"slices" module only in go 1.21 #2342

Closed DrDaveD closed 6 months ago

DrDaveD commented 6 months ago

I attempted to update apptainer to use a commit on the current main branch of containers/image/v5, but when compiling with go 1.20.10 it got this compilation error:

/go/pkg/mod/github.com/containers/image/v5@v5.30.1-0.20240312145342-38f5de6fa34d/pkg/blobinfocache/internal/prioritize/prioritize.go:6:2: package slices is not in GOROOT (/usr/local/go/src/slices)

2340 said it was about updating to go 1.20, but it started using the "slices" package which is only in go 1.21 and later.

mtrmac commented 6 months ago

Oops, I missed that. #2343 should fix it.

Thanks for the report!