FTBFS on ubuntu incompatible distro vs vendorized deps?
we have different versions of a few deps, and overall the package fails to build from source.
I solved one of the issues, but more remain unsolved.
# github.com/sylabs/singularity/vendor/github.com/deislabs/oras/pkg/content
../vendor/github.com/deislabs/oras/pkg/content/file.go:23:2: cannot use &FileStore literal (type *FileStore) as type content.Provider in assignment:
*FileStore does not implement content.Provider (wrong type for ReaderAt method)
have ReaderAt(context.Context, "github.com/sylabs/singularity/vendor/github.com/opencontainers/image-spec/specs-go/v1".Descriptor) (content.ReaderAt, error)
want ReaderAt(context.Context, "github.com/sylabs/singularity/vendor/github.com/containerd/containerd/vendor/github.com/opencontainers/image-spec/specs-go/v1".Descriptor) (content.ReaderAt, error)
../vendor/github.com/deislabs/oras/pkg/content/file.go:197:25: cannot use desc (type "github.com/sylabs/singularity/vendor/github.com/containerd/containerd/vendor/github.com/opencontainers/image-spec/specs-go/v1".Descriptor) as type "github.com/sylabs/singularity/vendor/github.com/opencontainers/image-spec/specs-go/v1".Descriptor in argument to ResolveName
../vendor/github.com/deislabs/oras/pkg/content/file.go:205:45: cannot use desc (type "github.com/sylabs/singularity/vendor/github.com/containerd/containerd/vendor/github.com/opencontainers/image-spec/specs-go/v1".Descriptor) as type "github.com/sylabs/singularity/vendor/github.com/opencontainers/image-spec/specs-go/v1".Descriptor in argument to s.createWritePath
../vendor/github.com/deislabs/oras/pkg/content/file.go:211:9: cannot use &fileWriter literal (type *fileWriter) as type content.Writer in return argument:
*fileWriter does not implement content.Writer (wrong type for Commit method)
have Commit(context.Context, int64, "github.com/sylabs/singularity/vendor/github.com/opencontainers/go-digest".Digest, ...content.Opt) error
want Commit(context.Context, int64, "github.com/sylabs/singularity/vendor/github.com/containerd/containerd/vendor/github.com/opencontainers/go-digest".Digest, ...content.Opt) error
../vendor/github.com/deislabs/oras/pkg/content/file.go:214:3: cannot use desc (type "github.com/sylabs/singularity/vendor/github.com/containerd/containerd/vendor/github.com/opencontainers/image-spec/specs-go/v1".Descriptor) as type "github.com/sylabs/singularity/vendor/github.com/opencontainers/image-spec/specs-go/v1".Descriptor in field value
../vendor/github.com/deislabs/oras/pkg/content/memory.go:18:2: cannot use &Memorystore literal (type *Memorystore) as type content.Provider in assignment:
*Memorystore does not implement content.Provider (wrong type for ReaderAt method)
have ReaderAt(context.Context, "github.com/sylabs/singularity/vendor/github.com/opencontainers/image-spec/specs-go/v1".Descriptor) (content.ReaderAt, error)
want ReaderAt(context.Context, "github.com/sylabs/singularity/vendor/github.com/containerd/containerd/vendor/github.com/opencontainers/image-spec/specs-go/v1".Descriptor) (content.ReaderAt, error)
../vendor/github.com/deislabs/oras/pkg/content/memory.go:89:24: cannot use desc (type "github.com/sylabs/singularity/vendor/github.com/containerd/containerd/vendor/github.com/opencontainers/image-spec/specs-go/v1".Descriptor) as type "github.com/sylabs/singularity/vendor/github.com/opencontainers/image-spec/specs-go/v1".Descriptor in argument to ResolveName
../vendor/github.com/deislabs/oras/pkg/content/memory.go:91:9: cannot use &memoryWriter literal (type *memoryWriter) as type content.Writer in return argument:
*memoryWriter does not implement content.Writer (wrong type for Commit method)
have Commit(context.Context, int64, "github.com/sylabs/singularity/vendor/github.com/opencontainers/go-digest".Digest, ...content.Opt) error
want Commit(context.Context, int64, "github.com/sylabs/singularity/vendor/github.com/containerd/containerd/vendor/github.com/opencontainers/go-digest".Digest, ...content.Opt) error
../vendor/github.com/deislabs/oras/pkg/content/memory.go:94:3: cannot use desc (type "github.com/sylabs/singularity/vendor/github.com/containerd/containerd/vendor/github.com/opencontainers/image-spec/specs-go/v1".Descriptor) as type "github.com/sylabs/singularity/vendor/github.com/opencontainers/image-spec/specs-go/v1".Descriptor in field value
I tried to build the package locally and I got the following error during compilation:
# github. com/sylabs/ singularity/ internal/ pkg/cgroups pkg/cgroups/ manager_ linux.go: 135:21: cannot use spec (variable of type *"github. com/opencontain ers/runtime- spec/specs- go".Spec) as *"github. com/opencontain ers/runc/ vendor/ github. com/opencontain ers/runtime- spec/specs- go".Spec value in struct literal pkg/cgroups/ manager_ linux.go: 303:21: cannot use spec (variable of type *"github. com/opencontain ers/runtime- spec/specs- go".Spec) as *"github. com/opencontain ers/runc/ vendor/ github. com/opencontain ers/runtime- spec/specs- go".Spec value in struct literal
../internal/
../internal/
The other errors mentioned in the description got sorted out.