Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

golang 1.16: fs.FileMode undefined (type *v1.FFLexer has no field or method FileMode) #262

Open
cevich opened this issue May 5, 2021 · 0 comments

Comments

@cevich
Copy link

cevich commented May 5, 2021

On a Fedora 34 VM with golang 1.16, the ffjson generated code (archive_ffjson.go) fails to compile:

GO111MODULE=on go build -mod=vendor -compiler gc -tags "  "  ./cmd/containers-storage
# github.com/containers/storage/pkg/archive
pkg/archive/archive_ffjson.go:13:2: imported and not used: "io/fs"
pkg/archive/archive_ffjson.go:1652:17: fs.FileMode undefined (type *v1.FFLexer has no field or method FileMode)
make: *** [Makefile:54: containers-storage] Error 2

I do not have this problem on my Ubuntu VM using golang 1.15 on the same code.

I tried with the "latest" ffjson commit aa0246c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant