ndecker / fritzbox_exporter

Fritz!Box Upnp statistics exporter for prometheus
Apache License 2.0
91 stars 118 forks source link

Release Package no usable #14

Closed sgutermann closed 1 year ago

sgutermann commented 6 years ago

Maybe it is due to my lack of understanding of the GO language, but downloading and trying to use your release packe does not seem possible.

package . imports ./vendor/github.com/prometheus/client_golang/prometheus: must be imported as github.com/prometheus/client_golang/prometheus

If I get all of that right it means I have to install directly from GitHub. So what is the purpose of the release package?

I prefer release packages as they ensure if I have them stored locally I can re-use them 10 years from now, weather you deleted your project or not.

Please advise if this is just my lack of understanding.

bachp commented 6 years ago

Do you mean the sources .tar.gz and .zip in the release tab? This are basically just snapshots of the git repository.

Go uses GOPATH to find sources. This means you need to store them in the right location. For this package that would be: $GOPATH/src/github.com/ndecker/fritzbox_exporter.

sgutermann commented 6 years ago

Dear bachp, I do think that is what I mean. I have installed the fritzexporter by hand for now, trying it on my FritzBox 7430 and it works quite fine.

I now understand GOPATH.

Next step on my part ist to get all of this into an Ansible Role so that I can reproduce this installation whenever I want on whatever hardware is sitting around at my home.

ndecker commented 1 year ago

I have removed the old release and upgraded the build instructions in the readme. It should work with current go versions.