containerd/imgcrypt

Problem with ctd-decoder

amar-g72 opened this issue · 2 comments

I have cloned containerd/imgcrypt but it is having difficulty with 'ctd-decoder' when I use the 'make' command

github.com/containerd/containerd/cio

github.com/containerd/containerd/content

github.com/containerd/containerd/content

vendor/github.com/containerd/containerd/content/helpers.go:236:27: undefined: io.Discard

github.com/containerd/containerd/mount

github.com/containerd/containerd/cio

vendor/github.com/containerd/containerd/cio/io_unix.go:41:14: undefined: os.MkdirTemp

github.com/containerd/containerd/remotes/errors

github.com/containerd/containerd/remotes/errors

vendor/github.com/containerd/containerd/remotes/errors/errors.go:43:10: undefined: io.ReadAll

github.com/containerd/containerd/services/introspection

github.com/containerd/containerd/mount

vendor/github.com/containerd/containerd/mount/temp.go:33:16: undefined: os.MkdirTemp

github.com/containerd/containerd/services/introspection

vendor/github.com/containerd/containerd/services/introspection/local.go:117:15: undefined: os.ReadFile

vendor/github.com/containerd/containerd/services/introspection/local.go:141:12: undefined: os.WriteFile

make: *** [Makefile:37: bin/ctd-decoder] Error 2

I think you will need a more recent version of go to compile it. You should probably use go1.18 or later: https://endoflife.date/go

Did you get it to compile with a later version of go?