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

ZEP-0010: Vendoring external dependencies #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

soltysh
Copy link
Contributor

@soltysh soltysh commented Jan 10, 2025

Vendoring adds to repository's size. However, disk space is inexpensive, and many
large projects (eg. [Kubernetes](https://github.com/kubernetes/kubernetes/), with
a `vendor/` directory ~70MB) have benefited from improving their dependency management.
For Zarf, vendoring would increase the repository size by approximately 410MB.
Copy link
Contributor

Choose a reason for hiding this comment

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

I would be interested to see the cost of a vendor folder storage on the .git folder. I'm not sure if there is an easy way to calculate that. The Kubernetes .git folder is ~1.2 GBs. There have surely been a lot of changes in Kubernetes itself, but I wonder how much of .git folder is from vendor diffs.

3. **Faster CI/CD Builds Times.**

Local dependencies eliminate the need to fetch external dependencies, speeding
up builds.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is especially nice for Windows builds, where github actions caching doesn't work, so pulling all the Zarf dependencies for unit tests takes about 10 minutes

@soltysh soltysh changed the title ZEP-10: Vendoring external dependencies ZEP-0010: Vendoring external dependencies Jan 10, 2025
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