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

vendor golang.org/x/sys seems large #159

Closed
xiekeyang opened this issue Jul 13, 2017 · 6 comments
Closed

vendor golang.org/x/sys seems large #159

xiekeyang opened this issue Jul 13, 2017 · 6 comments

Comments

@xiekeyang
Copy link
Contributor

xiekeyang commented Jul 13, 2017

@opencontainers/image-tools-maintainers vendor golang.org/x/sys seems to be redundant large. But it exists in And managed by glide.lock.
We might be able to remove the package code totally. That is big up to 4MB.
And, I think we can remove glide files from this repo. Commiter can add vendor codes manually. While I know this idea strengths and weaknesses.

@cyphar
Copy link
Member

cyphar commented Jul 13, 2017

Absolutely not. Removing vendor from the repo means that you can no longer build code reproducibly, nor can they be certain what code was used to build our binaries. If golang.org/x/sys breaks in the future (unlikely but the point stands) then users will have to guess what version of the code worked. Distributions no longer can actually be sure what code needs to be used to build the project.

While 4MB is fairly large, the reason why it's so large is because glide does not remove unused dependencies. I would prefer moving to https://github.com/lk4d4/vndr (which does clean dependencies and will reduce the size of vendor/ significantly) over removing very important information. glide.lock is technically enough to reconstruct the vendor tree but I would prefer if we just keep vendor.

@xiekeyang xiekeyang changed the title vendor golang.org/x/sys seems to be redundant vendor golang.org/x/sys seems large Jul 13, 2017
@xiekeyang
Copy link
Contributor Author

My fault. it is used in https://github.com/opencontainers/image-tools/blob/master/vendor/github.com/Sirupsen/logrus/terminal_solaris.go
If under solaris terminal, it will not work.

@stevvooe
Copy link
Contributor

What exactly is the proposal here?

@xiekeyang
Copy link
Contributor Author

@stevvooe I will try the proposal from @cyphar , to debug by https://github.com/lk4d4/vndr to reduce vendor size.

@stevvooe
Copy link
Contributor

@xiekeyang Who cares about the size? It really doesn't matter. This is a waste of effort.

@xiekeyang
Copy link
Contributor Author

Close it temporarily

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

No branches or pull requests

3 participants