newrelic / nri-network-telemetry

Network Telemetry Integration for New Relic
Apache License 2.0
1 stars 5 forks source link

Error running make #3

Closed danifitz closed 5 years ago

danifitz commented 5 years ago

Hi - when I run make, I get an error:

ERRO Running error: context loading failed: failed to load program with go/packages: internal error: go list gives conflicting information for package nri-network-telemetry/vendor/github.com/newrelic/nri-network-telemetry/internal/util make: *** [lint] Error 3

melzreal commented 5 years ago

tried this after googling around and hitting the same problem:

run go env -w GO111MODULE="on"

reason for that error seemed to be, when doing "go env " that module was set to empty. Now I'm seeing different errors so well, that's progress.

melzreal commented 5 years ago

so disregard the above since the error following that - github.com/fsnotify/fsnotify@v1.4.7 used for two different module paths (github.com/fsnotify/fsnotify and gopkg.in/fsnotify.v1) make: *** [tools] Error 1

got me down a rabbit hole saying modules shouldn't be used, and github links should be used instead so that variable should stay off - https://github.com/golang/go/issues/26904

as per "Agnivade's" comment on that thread.

So just stumped here

jthurman42 commented 5 years ago

This repo previously did not use go modules for dependencies (it used dep). I've migrated to modules in the latest release, as well as added in CircleCI builds to confirm.

Please retest with:

danifitz commented 5 years ago

Thanks @jthurman42 this works for me now with golang v1.13