Skip to content

"slices" module only in go 1.21 #2342

@DrDaveD

Description

@DrDaveD

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions