-
Notifications
You must be signed in to change notification settings - Fork 316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migration from glide to dep #319
Conversation
|
||
[[prune.project]] | ||
name = "github.com/ethereum/go-ethereum" | ||
unused-packages = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New line expected
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
go-tests = true | ||
unused-packages = true | ||
|
||
[[prune.project]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Global unused-packages is a little evil I agree - so no we can specificy this flag per dependency? It would be a bit tricky to track if we need this flag for specific depedency or not - especially if it has transitive dependencies. and this flag is very important if package uses cgo - as any .c .h files will be pruned if this flag is true. That's a bit of consideration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, now it can be used for per project configuration.
Regarding cases when we need to save unused-packages, I think, we should use it only when something does not work without it. It keeps a vendor
directory much smaller.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright. That's a new feature I guess? As long as I remember it was global flag only
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure when it was introduced.
Found the only bug when it was broken: golang/dep#1561 )
76730d7
to
640b213
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -38,8 +34,8 @@ jobs: | |||
- stage: dep-cache | |||
name: "Vendor update" | |||
script: | |||
- source bin/travis_scripts/ensure_glide.sh $BUILD_TOOLS_PATH "v0.13.1" | |||
- glide "-home" $GLIDE_HOME install | |||
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about go get ..
way?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is strongly recommended that you use a released version.
And go get
requires to get sources and build it, so it probably a bit slower than download just binary.
@@ -6,7 +6,7 @@ | |||
* **Step 1.** Get project dependencies | |||
```bash | |||
brew install go | |||
brew install glide | |||
brew install dep |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We collect our development dependencies into node-builder
image here bin/builder_docker/Dockerfile
32065b7
to
3a0251f
Compare
3a0251f
to
c031903
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.