container-storage-interface/spec

Build is broken with go 1.16

gnufied opened this issue · 2 comments

We don't have to fix this right away but it looks like builds might be broken in 1.16 because of go module changes.

(cd /home/hekumar/goal/src/github.com/golang/protobuf/ && go get -v -d $(go list -f '{{ .ImportPath }}' ./...)) &&
go build -o "protoc-gen-go" github.com/golang/protobuf/protoc-gen-go
no required module provides package github.com/golang/protobuf/protoc-gen-go: working directory is not part of a module
make[1]: *** [Makefile:66: protoc-gen-go] Error 1
make[1]: Leaving directory '/home/hekumar/goal/src/github.com/container-storage-interface/spec/lib/go'
make: *** [Makefile:36: build] Error 2

it works by explicitly disabling go modules though:

GO111MODULE=off make
jdef commented