Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot make #17

Open
zaoqi opened this issue Mar 9, 2019 · 1 comment
Open

cannot make #17

zaoqi opened this issue Mar 9, 2019 · 1 comment

Comments

@zaoqi
Copy link

zaoqi commented Mar 9, 2019

$ make
go build -o bin/godzilla cmd/godzilla/*
cmd/godzilla/main.go:12:2: cannot find package "github.com/jingweno/godzilla/build" in any of:
        /usr/lib/go-1.7/src/github.com/jingweno/godzilla/build (from $GOROOT)
        ($GOPATH not set)
cmd/godzilla/main.go:13:2: cannot find package "github.com/spf13/cobra" in any of:
        /usr/lib/go-1.7/src/github.com/spf13/cobra (from $GOROOT)
        ($GOPATH not set)
Makefile:9: recipe for target 'build-godzilla' failed
make: *** [build-godzilla] Error 1
@Stvchm9703
Copy link

Stvchm9703 commented Oct 24, 2019

since it is using vendor(having the vendor folder), it should be init the project first

go mod init 
go mod vendor 

then, do the remain process ( remark: it may better change the cmd/godzilla/* as cmd/godzilla/main.go :\ )

go build -o ./bin/godzilla ./cmd/godzilla/main.go 
go build -o ./bin/godzillac ./cmd/godzillac/main.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants