Code Monkey home page Code Monkey logo

Comments (4)

mdlayher avatar mdlayher commented on June 15, 2024

If I had to guess, you probably did a git clone instead of a go get?

Try go get -d -u -v github.com/mdlayher/unifi_exporter and then build. This will show you that it's fetching and updating all dependencies as well.

from unifi_exporter.

Kalloritis avatar Kalloritis commented on June 15, 2024

Even given that, this does not compile currently.

/opt/unifi_exporter_unifi_exporter # GOPATH=/opt/unifi_exporter/unifi_exporter/ make
go build ./cmd/unifi_exporter
# github.com/mdlayher/unifi
../unifi/client.go:102: undefined: http.MethodPost
../unifi/client.go:126: undefined: http.MethodPost
# github.com/prometheus/client_golang/prometheus
../../prometheus/client_golang/prometheus/registry.go:399: syntax error: unexpected range, expecting {
../../prometheus/client_golang/prometheus/registry.go:513: non-declaration statement outside function body
../../prometheus/client_golang/prometheus/registry.go:514: non-declaration statement outside function body
../../prometheus/client_golang/prometheus/registry.go:515: syntax error: unexpected }
Makefile:4: recipe for target 'build' failed
make: *** [build] Error 2
/opt/unifi_exporter_unifi_exporter # go version
go version go1.3.3 linux/amd64

from unifi_exporter.

mdlayher avatar mdlayher commented on June 15, 2024

The current stable release of Go is 1.8.1. I don't support any versions of Go that are older than that.

Closing this issue due to lack of response from the original author.

from unifi_exporter.

Kalloritis avatar Kalloritis commented on June 15, 2024

@mdlayher Please add a min version of Go to the readme to ensure this does not happen to others. Go 1.3.3 is the latest release that is part of the Debian 8 repo.

from unifi_exporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.