Huawei / eSDK_K8S_Plugin

Container-Storage-Interface (CSI) for Huawei storage
https://huawei.github.io/css-docs/
Apache License 2.0
85 stars 47 forks source link

Can't build binaries using go 1.16.6 #25

Closed tongpu closed 2 years ago

tongpu commented 3 years ago

When trying to build the binaries according to the compilation steps described in the README.md with go 1.16.6 I receive the following error message:

# make -f Makefile-CSI PLATFORM=X86
mkdir -p ./bin
go build -o ./bin/huawei-csi      ./src/csi
go: go.mod file not found in current directory or any parent directory; see 'go help modules'
make: *** [Makefile-CSI:11: DIFF] Error 1

Even if I try to explicitly disable it I received another error:

# GO111MODULE=off make -f Makefile-CSI PLATFORM=X86
mkdir -p ./bin
go build -o ./bin/huawei-csi      ./src/csi
src/vendor/golang.org/x/net/http2/frame.go:17:2: use of vendored package not allowed
src/vendor/google.golang.org/grpc/internal/transport/controlbuf.go:29:2: use of vendored package not allowed
src/vendor/golang.org/x/net/http2/transport.go:35:2: use of vendored package not allowed
make: *** [Makefile-CSI:11: DIFF] Error 1

Here's the output from go version for your reference:

go version go1.16.6 linux/amd64