-
Notifications
You must be signed in to change notification settings - Fork 304
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
Migrate to dep #4
Conversation
de53beb
to
48d31dc
Compare
48d31dc
to
d70f3f3
Compare
@@ -28,3 +28,11 @@ Session.vim | |||
# coverage artifacts | |||
.coverprofile | |||
/gover.coverprofile | |||
|
|||
# Ignore everything in vendor/, except for *.go files, |
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.
Why? what specifically are we avoiding? I am worried about other variants of license information, and who knows what else we might hit..
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.
Godep pruned vendored repos as well and found license information based off a series of prefixes.
https://github.com/tools/godep/blob/a9cd0561f946ccbdbfdee5b9226659f9919a1ca8/license.go#L9-L17
I'd like to avoid vendoring the _test.go files. I'll modify the file to allow back everything else.
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.
Probably ok to have the *_test.go files?
To what end, though? What is that buying us?
…On Mon, Oct 9, 2017 at 10:18 AM, Nick Sardo ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In .gitignore
<#4 (comment)>:
> @@ -28,3 +28,11 @@ Session.vim
# coverage artifacts
.coverprofile
/gover.coverprofile
+
+# Ignore everything in vendor/, except for *.go files,
Godep pruned vendored repos as well and found license information based
off a series of prefixes.
https://github.com/tools/godep/blob/a9cd0561f946ccbdbfdee5b9226659
f9919a1ca8/license.go#L9-L17
I'd like to avoid vendoring the _test.go files. I'll modify the file to
allow back everything else.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFVgVDVxxS81yGhkR-pBHl5NB9MsXaqXks5sqlWAgaJpZM4PxJOt>
.
|
For the purpose of migrating to dep, I wanted to show that not much changed in the vendor dir, which meant mimicking the same pruning done by godep. Dep itself is also moving towards pruning as much as possible I'll remove the gitignore restrictions. |
Yeah, I think it's easier to just do what `dep` does. If it prunes, we
prune. If it doesn't we don't (and maybe complain about it). Less
surprising?
…On Mon, Oct 9, 2017 at 10:38 AM, Nick Sardo ***@***.***> wrote:
For the purpose of migrating to dep, I wanted to show that not much
changed in the vendor dir, which meant mimicking the same pruning done by
godep. Dep itself is also moving towards pruning as much as possible
golang/dep#944.
I'll remove the gitignore restrictions.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFVgVIKIxxaFHd4D4-sZFAW9r5JB_pMIks5sqloPgaJpZM4PxJOt>
.
|
Ran:
Dep does not do a great job at pruning, yet. Some dep users are depending on .gitignore to remove unneeded files, especially
_test.go
Resulting dep status:
Note: I'm purposely preventing github auto-linking so we're not spamming the golang/dep repo.