You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ 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
The text was updated successfully, but these errors were encountered:
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/nri-collectd" not a go package or not in GOPATH.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 "
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
The text was updated successfully, but these errors were encountered: