gliderlabs / cmd

Other
28 stars 4 forks source link

Issue building on Linux #202

Open kevev opened 5 years ago

kevev commented 5 years ago

~/go/src/github/gliderlabs/cmd# GO111MODULE=on make dev docker-compose -f dev/services.yml up -d dev_dynamodb_1 is up-to-date ./dev/deps.sh comlab dev 2019/04/28 20:38:46 ERROR! Build failed:

github.com/gliderlabs/cmd/lib/agentproxy

/root/go/pkg/mod/github.com/gliderlabs/cmd@v0.0.0-20170921193550-7e7fb06de288/lib/agentproxy/agentproxy.go:43:6: undefined: client.IsErrImageNotFound

2019/04/28 20:38:46 Service failed before ready, exiting... Makefile:28: recipe for target 'dev' failed make: *** [dev] Error 1

kevev commented 5 years ago

GO111MODULE=on go get github.com/gliderlabs/cmd/lib/agentproxy go: finding github.com/gliderlabs/cmd/lib/agentproxy latest go: finding github.com/gliderlabs/cmd/lib latest go: finding github.com/gliderlabs/cmd latest

github.com/gliderlabs/cmd/lib/agentproxy

/root/go/pkg/mod/github.com/gliderlabs/cmd@v0.0.0-20170921193550-7e7fb06de288/lib/agentproxy/agentproxy.go:43:6: undefined: client.IsErrImageNotFound

kevev commented 5 years ago

Got past that error. Now have this:

GO111MODULE=on make build GOOS=linux GOARCH=amd64 \ go build -ldflags "-X main.Version=7e7fb06de288442e5c4b52f437dbdf0a40cd0f77" -o build/linux_amd64/cmd ./cmd/cmd

github.com/gliderlabs/cmd/app/store/dynamodb

/root/go/pkg/mod/github.com/gliderlabs/cmd@v0.0.0-20170921193550-7e7fb06de288/app/store/dynamodb/cmd.go:45:79: c.cmdTable().Get("User", user).Range("Name", dynamo.Equal, name).OneItem undefined (type dynamo.Query has no field or method OneItem) /root/go/pkg/mod/github.com/gliderlabs/cmd@v0.0.0-20170921193550-7e7fb06de288/app/store/dynamodb/cmd.go:97:33: c.updateCmd(owner, name).Delete undefined (type dynamo.Update has no field or method Delete) /root/go/pkg/mod/github.com/gliderlabs/cmd@v0.0.0-20170921193550-7e7fb06de288/app/store/dynamodb/cmd.go:109:33: c.updateCmd(owner, name).Delete undefined (type *dynamo.Update has no field or method Delete) Makefile:24: recipe for target 'build/linux_amd64/cmd' failed make: *** [build/linux_amd64/cmd] Error 2