Skip to content
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

added excludes for vendored directories (since GO 1.5) #1689

Merged
merged 1 commit into from
Nov 2, 2015
Merged

added excludes for vendored directories (since GO 1.5) #1689

merged 1 commit into from
Nov 2, 2015

Conversation

enzian
Copy link
Contributor

@enzian enzian commented Oct 7, 2015

The standard github .gitignore file for GO does not exclude vendored directories. Since Go 1.5, the Go compiler with look for dependencies under the /vendor/** path first and default back to the $GOPATH/**. Most vendoring tools for go do not expect you to have the directories under /vendor checked in but will go get them into the vendor directory. That's why I recommend excluding the /vendor/** directories. The /vendor/manifest file is needed by many dependency management tools in Go to keep a record of the vendored dependencies and rebuild them if necessary - so it should not be excluded.

@shiftkey
Copy link
Member

shiftkey commented Oct 8, 2015

Seems reasonable.

cc @technoweenie @rubyist for a 👍

@enzian
Copy link
Contributor Author

enzian commented Nov 2, 2015

ehm, are we gonna merge this sometime or not?!?

shiftkey added a commit that referenced this pull request Nov 2, 2015
added excludes for vendored directories (since GO 1.5)
@shiftkey shiftkey merged commit 2bd7d8e into github:master Nov 2, 2015
@enzian enzian deleted the f_GoVendorExperiment branch November 4, 2015 06:38
u9E9F pushed a commit to u9E9F/gitignore that referenced this pull request Jul 8, 2017
added excludes for vendored directories (since GO 1.5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants