monitoringartist / zabbix-template-converter

:triangular_ruler: Zabbix template XML/JSON/YAML converter
GNU General Public License v2.0
16 stars 12 forks source link

cannot find package #5

Open GavinRest opened 3 years ago

GavinRest commented 3 years ago

go get prompt cannot find package

⚡ go get -u github.com/monitoringartist/zabbix-template-converter cannot find package "github.com/monitoringartist/go-zabbix/v40" in any of: /usr/local/Cellar/go/1.15.5/libexec/src/github.com/monitoringartist/go-zabbix/v40 (from $GOROOT) /Users/suwenqiang/go/src/github.com/monitoringartist/go-zabbix/v40 (from $GOPATH) cannot find package "github.com/monitoringartist/go-zabbix/v44" in any of: /usr/local/Cellar/go/1.15.5/libexec/src/github.com/monitoringartist/go-zabbix/v44 (from $GOROOT) /Users/suwenqiang/go/src/github.com/monitoringartist/go-zabbix/v44 (from $GOPATH)

m4tek commented 3 years ago

This is all messed up due to go mods being introduced.

Please clone the repo and build it locally. Note that there is (at the time of writing) mismatch between 4.0 converter check-sum and the go.sum in the repo, hence I recommend removing it.

After local build everything works fine.

Try:

$ git clone https://github.com/monitoringartist/zabbix-template-converter.git $ cd zabbix-template-converter/ $ rm go.sum $ go build . $ ./zabbix-template-converter

jakelima18 commented 3 years ago

same issue