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

dep prune vendor #962

Merged
merged 2 commits into from May 21, 2018
Merged

dep prune vendor #962

merged 2 commits into from May 21, 2018

Conversation

jmrodri
Copy link
Contributor

@jmrodri jmrodri commented May 19, 2018

dep now can remove tests and non-go files from dependencies which bloat
the repo. There is no reason to have these files in the repo as they do
not get compiled.

The BEST part is the vendor tree shrinks dramatically.

Before the prune:

$ du -sh vendor
258M    vendor

After the prune:

$ du -sh vendor
46M     vendor

@openshift-ci-robot openshift-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label May 19, 2018
@jmrodri
Copy link
Contributor Author

jmrodri commented May 19, 2018


[prune]
unused-packages = true
go-tests = true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add non-go = true to this as well it will reduce the size to 40M?

unused-packages = true => files from directories that do not appear in
        the package import graph should be pruned

non-go = true => prunes files that are not used by Go

go-tests = true => prunes Go test files
dep now can remove tests and non-go files from dependencies which bloat
the repo. There is no reason to have these files in the repo as they do
not get compiled.
@jmrodri
Copy link
Contributor Author

jmrodri commented May 21, 2018

@shawn-hurley switched to using all three options as true.

@jmrodri jmrodri merged commit 6b7e984 into master May 21, 2018
@jmrodri jmrodri deleted the prune-vendor branch May 21, 2018 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. tech-debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants