-
Notifications
You must be signed in to change notification settings - Fork 770
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
Switch from godep to glide #319
Conversation
I am +1 on keeping |
So with this PR should we delete the PR #297 ? |
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.
Yes you could run glide-vc --only-code --no-tests
. Vendor folder size was only 32MB left after running it. Built success.
So there is a reason why glide doesn't strip dependencies. Maybe @sebgoa has opinion on that? |
updated this PR with glide-vc cleanup. |
I will add some docs to this PR explaining how to add and update dependencies |
you'll probably want to squash those commits, or git will still track the removed objects. |
@ericchiang yes that is the plan, I will definitely squash this before merge. @ngtuna I'll add short docs and probably scripts that will wrap glide and glide-vc. Than I'll ping you for another review. 😉 |
cb99fa5
to
0cb9385
Compare
I've added docs and scripts that validate if vendor is clean. It is ready for another review. |
@technosophos could you advise us with this ? |
This checks vendor dir for nested vendors and if vendor has been cleaned by glide-vc
/cc @mattfarina (who volunteered to look at this on SIG-Apps). This looks good to me. If you're checking in vendor, then glide-vc is a great way to manage that. And everything else looks great. |
@technosophos so can we go ahead with merging this? |
I have no reason to object to merging this, though I'm not a core maintainer on this project. |
@ngtuna He's away until after the new year, so you'll have to merge or we could wait until he's back :) |
@technosophos @ngtuna @cdrage thank you merging this in. |
fixed #314
I tried to use Glide instead of Godep, setting up was surprisingly easy.
With only one catch: You need to run
glide update
with--strip-vendor
otherwise glide keeps vendor directories inside kompose vendor dir (/vendor/.../vendor/...
) In some project this can be useful, but kompose can't be build whit this.Overall I really like glide.
But (there is always but 😎 )
It looks like glide is not striping unused code from vendored dependencies , like godep does.
with glide vendor is 277M :-(
with godep it was 52M
https://github.com/sgotti/glide-vc might help with that. (haven't tried yet)
Or we can remove vendor from git as @ngtuna suggested here. But I expressed my view there. I think it is better to keep vendor in project repo.