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

Build step in make does not work #12

Open
spideyz0r opened this issue Oct 1, 2021 · 0 comments
Open

Build step in make does not work #12

spideyz0r opened this issue Oct 1, 2021 · 0 comments

Comments

@spideyz0r
Copy link

Hey,

It seems that the problem might be related to govendor and paths.
Do you mind having a look?

Steps to reproduce the issue:

$ git clone https://github.com/newrelic/nri-collectd.git
Cloning into 'nri-collectd'...
remote: Enumerating objects: 765, done.
remote: Total 765 (delta 0), reused 0 (delta 0), pack-reused 765
Receiving objects: 100% (765/765), 2.13 MiB | 4.15 MiB/s, done.
Resolving deltas: 100% (430/430), done.

$ go version
go version go1.16.8 linux/amd64

$ cd nri-collectd/
$ make
go: cannot find main module, but found vendor/vendor.json in ~/nri-collectd
to create a module there, run:
go mod init
=== nri-collectd === [ clean ]: removing binaries and coverage file...
=== nri-collectd === [ validate-deps ]: installing validation dependencies...
get "golang.org/x/lint/golint": found meta tag vcs.metaImport{Prefix:"golang.org/x/lint", VCS:"git", RepoRoot:"https://go.googlesource.com/lint"} at //golang.org/x/lint/golint?go-get=1
get "golang.org/x/lint/golint": verifying non-authoritative meta tag
get "golang.org/x/lint": found meta tag vcs.metaImport{Prefix:"golang.org/x/lint", VCS:"git", RepoRoot:"https://go.googlesource.com/lint"} at //golang.org/x/lint?go-get=1
get "golang.org/x/tools": found meta tag vcs.metaImport{Prefix:"golang.org/x/tools", VCS:"git", RepoRoot:"https://go.googlesource.com/tools"} at //golang.org/x/tools?go-get=1
go: cannot find main module, but found vendor/vendor.json in /nri-collectd
to create a module there, run:
go mod init
=== nri-collectd === [ validate ]: running gofmt... passed.
=== nri-collectd === [ validate ]: running golint... passed.
=== nri-collectd === [ validate ]: running go vet... passed.
=== nri-collectd === [ compile-deps ]: installing build dependencies...
Error: Package "
/nri-collectd" not a go package or not in GOPATH.
govendor sync
Ensures the contents of the vendor folder matches the vendor file.
Options:
-n dry run, print out action only
-insecure allow downloading over insecure connection
-v verbose output
make: *** [Makefile:59: compile-deps] Error 2

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

1 participant