You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/08/09 13:34:19 UTC
[GitHub] [cloudstack-terraform-provider] synergiator edited a comment on issue #1: Clarify what is exactly the build result
synergiator edited a comment on issue #1:
URL: https://github.com/apache/cloudstack-terraform-provider/issues/1#issuecomment-895226751
Thanks for mentioning the $GOPATH. Now I've added it, I get some error messages during the build process like the following:
```
go: downloading github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af
../pkg/mod/github.com/hashicorp/terraform@v0.12.0/config/interpolate_funcs.go:33:2: missing go.sum entry for module providing package golang.org/x/crypto/bcrypt (imported by github.com/hashicorp/terraform/config); to add:
go get github.com/hashicorp/terraform/config@v0.12.0
../pkg/mod/github.com/hashicorp/terraform@v0.12.0/plugin/discovery/signature.go:7:2: missing go.sum entry for module providing package golang.org/x/crypto/openpgp (imported by github.com/hashicorp/terraform/plugin/discovery); to add:
go get github.com/hashicorp/terraform/plugin/discovery@v0.12.0
../pkg/mod/github.com/hashicorp/go-plugin@v1.0.1-0.20190430211030-5692942914bb/internal/plugin/grpc_broker.pb.go:9:2: missing go.sum entry for module providing package golang.org/x/net/context (imported by github.com/hashicorp/go-plugin); to add:
go get github.com/hashicorp/go-plugin@v1.0.1-0.20190430211030-5692942914bb
../pkg/mod/golang.org/x/oauth2@v0.0.0-20190220154721-9b3c75971fc9/internal/token.go:22:2: missing go.sum entry for module providing package golang.org/x/net/context/ctxhttp (imported by golang.org/x/oauth2/internal); to add:
go get golang.org/x/oauth2/internal@v0.0.0-20190220154721-9b3c75971fc9
../pkg/mod/google.golang.org/grpc@v1.18.0/internal/transport/controlbuf.go:27:2: missing go.sum entry for module providing package golang.org/x/net/http2 (imported by google.golang.org/grpc/internal/transport); to add:
go get google.golang.org/grpc/internal/transport@v1.18.0
../pkg/mod/google.golang.org/grpc@v1.18.0/internal/transport/controlbuf.go:28:2: missing go.sum entry for module providing package golang.org/x/net/http2/hpack (imported by google.golang.org/grpc/internal/transport); to add:
go get google.golang.org/grpc/internal/transport@v1.18.0
../pkg/mod/github.com/hashicorp/terraform@v0.12.0/svchost/svchost.go:18:2: missing go.sum entry for module providing package golang.org/x/net/idna (imported by github.com/hashicorp/terraform/svchost); to add:
go get github.com/hashicorp/terraform/svchost@v0.12.0
../pkg/mod/google.golang.org/grpc@v1.18.0/server.go:36:2: missing go.sum entry for module providing package golang.org/x/net/trace (imported by google.golang.org/grpc); to add:
go get google.golang.org/grpc@v1.18.0
../pkg/mod/github.com/spf13/afero@v1.2.1/util.go:28:2: missing go.sum entry for module providing package golang.org/x/text/transform (imported by github.com/spf13/afero); to add:
go get github.com/spf13/afero@v1.2.1
../pkg/mod/github.com/zclconf/go-cty@v0.0.0-20190516203816-4fecf87372ec/cty/value_init.go:8:2: missing go.sum entry for module providing package golang.org/x/text/unicode/norm (imported by github.com/zclconf/go-cty/cty); to add:
go get github.com/zclconf/go-cty/cty@v0.0.0-20190516203816-4fecf87372ec
make: *** [GNUmakefile:9: build] Error 1
```
Here is the Dockerfile to reproduce; $GOPATH is added to $PATH.
```
FROM golang
RUN go version &&\
git clone https://github.com/apache/cloudstack-terraform-provider.git &&\
cd cloudstack-terraform-provider &&\
echo "GOPATH is: $GOPATH" &&\
export PATH=$PATH:$GOPATH &&\
echo "PATH is: $PATH" &&\
go get golang.org/x/tools/cmd/goimports &&\
make build
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org