Comments (8)
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.
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.
Interesting, thanks!
from cli.
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.
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.
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.
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.
Yeah, that sounds reasonable. Thanks for helping think about it!
from cli.
Related Issues (20)
- `exercism configure --workspace=D:` panics HOT 2
- FR: Run analyzer locally before submitting
- Fetch next exercise HOT 7
- Token is invalid error. Tried multiple ones HOT 4
- Is the file size restriction still correct? HOT 1
- feature request: `exercism download` should warn the user if a newer version is available
- FR: add go install as install method
- Broken links in CLI repo's contributing guide HOT 2
- Discussion: Deliver VSCode devcontainer with Exercises HOT 2
- help text for submit
- `exercism open` should open the exercise in the browser when in exercise folder.
- Wrong URL for fetching user token. HOT 1
- Delivery Option: container.dev features. HOT 1
- [feature] support local configuration HOT 1
- Add support for retrieving API token from secure storage (read from env var?) HOT 7
- Release 3.1.0 does not include shell completions HOT 1
- Setup goreleaser to update homebrew HOT 6
- Automate releases HOT 7
- Build the cli ? HOT 1
- Is that ok to ignore the workplace case sensitive on macOS HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.