Giter VIP home page Giter VIP logo

Comments (5)

inconshreveable avatar inconshreveable commented on July 19, 2024

ngrok only targets Go 1.1+, which has different rules about when a function may end with a return statement. I should probably add this to the development guide.

Try upgrading to Go1.1 and recompiling.

from ngrok.

arthurzenika avatar arthurzenika commented on July 19, 2024

After installing go_1.1.2-godeb1_amd64.deb using http://blog.labix.org/2013/06/15/in-flight-deb-packages-of-go I get a different error :

$ make
go fmt ngrok/...
go get -tags '' -d -v ngrok/...
go install -tags '' ngrok/main/ngrok
go install -tags '' ngrok/main/ngrokd
# ngrok/server
src/ngrok/server/control.go:5: import /home/arthur/local/ngrok/pkg/linux_amd64/ngrok/conn.a: not a package file
make: *** [server] Error 2

from ngrok.

inconshreveable avatar inconshreveable commented on July 19, 2024

I've never seen that before. It's possible that the package file formats are different across Go versions. Can you try:

cd /home/arthur/local/ngrok
rm -rf pkg bin
make

Reopening while we figure this out.

from ngrok.

arthurzenika avatar arthurzenika commented on July 19, 2024

Works!

$ make
go fmt ngrok/...
go get -tags '' -d -v ngrok/...
go install -tags '' ngrok/main/ngrok
go install -tags '' ngrok/main/ngrokd

I tried doing make clean, isn't "rm -rf pkg bin" missing there ?

from ngrok.

inconshreveable avatar inconshreveable commented on July 19, 2024

After a little bit of research it turns out that go clean needed some other arguments passed to it to make it effective. make clean works now!

from ngrok.

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.