infobloxopen / atlas-cli

Apache License 2.0
14 stars 45 forks source link

atlas init-app - "Starting mod project exit status 1" #58

Closed prakarp closed 4 years ago

prakarp commented 4 years ago
~/go/src$ atlas init-app -name=atest2 -gateway -db -registry=infoblox -pubsub -health
Generating protobuf files... done!
Starting mod project... exit status 1

Is the above an error? if so any tips on resolving it? go version go1.14.2 linux/amd64

Had done the following in the previous steps, but might not be consequential:

~/go/src/github.com/infobloxopen/atlas-cli$ make
main.go:1: running "go-bindata": exec: "go-bindata": executable file not found in $PATH
Makefile:12: recipe for target 'templating' failed
make: *** [templating] Error 1

Then installed go-bindata tool with:

$ go get github.com/jteeuwen/go-bindata 

~/go/src/github.com/jteeuwen/go-bindata$ go build
~/go/src/github.com/jteeuwen/go-bindata$
~/go/src/github.com/infobloxopen/atlas-cli$ export PATH=$PATH:~/go/bin
~/go/src/github.com/infobloxopen/atlas-cli$ make
atlas/templates/template-bindata.go
~/go/src/github.com/infobloxopen/atlas-cli$ which atlas
/home/.../go/bin/atlas
prakarp commented 4 years ago

Solved. The issue may be closed. With golang 1.14, one has to explicitly set the environment variable GO111MODULE=auto
before running "atlas init-app" command.