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/03 21:44:25 UTC

[GitHub] [cloudstack-terraform-provider] synergiator opened a new issue #1: Clarify what is exactly the build result

synergiator opened a new issue #1:
URL: https://github.com/apache/cloudstack-terraform-provider/issues/1


   For those who just want to build this project, it's not quite clear from the instructions what should be the build result, in case it works.
   
   I've tried to build inside the official [golang](https://hub.docker.com/_/golang) Docker container environment:
   
   ```
   $ bash --version
   GNU bash, version 5.0.3(1)-release (x86_64-pc-linux-gnu)
   $ go version
   go version go1.16.6 linux/amd64
   $ cd $GOPATH
   $ mkdir -p /src/github.com/apache
   $ cd /src/github.com/apache
   $ git clone https://github.com/apache/cloudstack-terraform-provider.git
   Cloning into 'cloudstack-terraform-provider'...
   $ cd cloudstack-terraform-provider
   $ make build
   ==> Checking that code complies with gofmt requirements...
   /src/github.com/apache/cloudstack-terraform-provider/scripts/gofmtcheck.sh: 25: /src/github.com/apache/cloudstack-terraform-provider/scripts/gofmtcheck.sh: [[: not found
   go install
   go: downloading github.com/apache/cloudstack-go/v2 v2.9.1-0.20210727062803-e00265f69955
   (snipping further download statements)
   go: downloading github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af
   ```
   
   After that, also running ```find . ``` I could not recognize something like build directory or similar.
   


-- 
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



[GitHub] [cloudstack-terraform-provider] synergiator edited a comment on issue #1: Clarify what is exactly the build result

Posted by GitBox <gi...@apache.org>.
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



[GitHub] [cloudstack-terraform-provider] rhtyd closed issue #1: Reproduce build in a defined environment

Posted by GitBox <gi...@apache.org>.
rhtyd closed issue #1:
URL: https://github.com/apache/cloudstack-terraform-provider/issues/1


   


-- 
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



[GitHub] [cloudstack-terraform-provider] rhtyd edited a comment on issue #1: Clarify what is exactly the build result

Posted by GitBox <gi...@apache.org>.
rhtyd edited a comment on issue #1:
URL: https://github.com/apache/cloudstack-terraform-provider/issues/1#issuecomment-895019764






-- 
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



[GitHub] [cloudstack-terraform-provider] rhtyd commented on issue #1: Clarify what is exactly the build result

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #1:
URL: https://github.com/apache/cloudstack-terraform-provider/issues/1#issuecomment-895019764


   @synergiator can you check and ensure you've fmt and goimports installed, for example:
   ```
   go get golang.org/x/tools/cmd/goimports
   ```
   
   Notice it runs "go install', the binary is installed at your `$GOPATH`, `cd $GOPATH/bin` to go to the bin folder where you'll see the `terraform-provider-cloudstack` binary.


-- 
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



[GitHub] [cloudstack-terraform-provider] synergiator commented on issue #1: Clarify what is exactly the build result

Posted by GitBox <gi...@apache.org>.
synergiator commented on issue #1:
URL: https://github.com/apache/cloudstack-terraform-provider/issues/1#issuecomment-895226751


   Now I get errors 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



[GitHub] [cloudstack-terraform-provider] rhtyd commented on issue #1: Clarify what is exactly the build result

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #1:
URL: https://github.com/apache/cloudstack-terraform-provider/issues/1#issuecomment-895021129


   @synergiator I checked the README, it does mention the $GOPATH. Kindly review and if you're satisfied close this issue. Thanks.


-- 
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