-
Notifications
You must be signed in to change notification settings - Fork 116
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
Use vendoring tool dep instad of committing the vendor folder #172
Conversation
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.
As I'm inexperienced with dep, this looks good to me
too late, but: afaik most projects commit just my 2 cents :) |
@slintes I agree with you |
I was on the same site when deciding to commit it in. I merged that PR as I am not that experienced with the go ecosystem at all and it made sense at that moment. So I would do a little vote here, at least @mavimo @JohnnyQQQQ @slintes, maybe @eliasp React on this comment with
|
addition: if we choose to commit it back, I still would like to have that in an extra PR, as the updates to the Gopkg files were needed anyway |
I spun up a PR for using the go.mod approach introduced with golang 1.11 #181 |
I suggest to use Dependency vendoring imho should not be done since we are going to introduce dependency in the codebase that should be omitted (we have technology that allow us to do that 😃) The only issue that this generate is the requirement to download dependency when we pull the repo, that IMHO is acceptable for a contributor. |
Can you clarify what you mean? |
@JohnnyQQQQ sorry :P
Duplicating the vendor code in our project is an anti-pattern that IMHO should not be done in any project. |
2 of the 3 the con arguments of getcomposer (history duplication, git submodule problems) are not relevant because go dep doesn't add the .git directory of dependencies into the vendor directory. (but at the end I don't care that much, this topic only catched my eyes while cleaning up my github notification mails) |
Never thought about someone deleting a whole project I depend on 😨 |
The repository already contains
Gopkg.toml
andGopkg.lock
but the vendoring folder is committed in codebase.Gopkg.toml
andGopkg.lock
to use the last version of packages (see2b7d2a2)
/vendor
folder from repository (see f174d07)I still using
dep
since is the tool used in this repo but maybe we should consider to move to module when go1.11 will be released