GithubHelp home page GithubHelp logo

Comments (8)

kytrinyx avatar kytrinyx commented on July 24, 2024

That is odd. It builds fine on my machine. It sounds like it suggests that it should be os.Args(), but when I try that, it blows up locally.

Which version of Go are you using? I've got 1.1.2:

$ go version
go version go1.1.2 darwin/amd64

from cli.

drueck avatar drueck commented on July 24, 2024

I've got the same version, more/less:

davidco: etl ✭ (master) ✗ go version
go version go1.1.2 linux/amd64

I wish I could be more helpful in troubleshooting, but I don't know anything about go. However, I am speculating that the thing it is complaining about is the assignment err := App.Run(os.Args) because when I deleted the err := part (and the following code that dealt with err) it ran fine. Hope that helps!? :)

from cli.

kytrinyx avatar kytrinyx commented on July 24, 2024

Interesting, thanks!

from cli.

kytrinyx avatar kytrinyx commented on July 24, 2024

Oh. Wait!

This is possibly a dependency thing. Try go get -u github.com/codegangsta/cli. The cli library did a major version bump recently.

from cli.

drueck avatar drueck commented on July 24, 2024

Ah, that did the trick! I ran a go get before trying the build, but I didn't realize you had to use the -u flag to force the update. Interesting. Cool, thanks! :)

Just out of curiosity, do you know if you can just do go get -u to force the update of all the dependencies? Or is that not desirable? (I'm not sure how the dependencies are versioned/controlled with go get). I'm just wondering if there's something we could add to the process in the README to handle a case like this?

from cli.

kytrinyx avatar kytrinyx commented on July 24, 2024

I'm assuming go get -u would work, but I haven't tried it yet.

Dependency management is very complex, and it doesn't seem to be a solved problem. See http://nathany.com/go-packages/

If it becomes a big problem, we should probably vendor these things. I don't think it will become a real problem, especially since the only production dependency (cli) just hit 1.0.

from cli.

drueck avatar drueck commented on July 24, 2024

Gotcha. Yeah, sounds like dependency management is far from figured out for go! But you're right, it might not be a big issue like you said since cli is now at 1.0 and theoretically has a more stable api.

Just out of curiosity I tried out go get -u and it did something sort of odd:

davidco: exercism-cli (master) go get -u
davidco: exercism-cli (c795bc7) git status
# HEAD detached at origin/master
nothing to commit, working directory clean

Looks like it checked out origin/master for exercism/cli. So, if you did that, you'd have to subsequently do a git co master to get back to where you want to be.

I guess it's probably fine to just leave the README as it is and wait to see if more people run into stuff like this before bothering to clutter up the instructions with edge cases.

from cli.

kytrinyx avatar kytrinyx commented on July 24, 2024

Yeah, that sounds reasonable. Thanks for helping think about it!

from cli.

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.