Skip to content

Conversation

@soltysh
Copy link
Contributor

@soltysh soltysh commented Jan 10, 2025

Signed-off-by: Maciej Szulik <maciej@defenseunicorns.com>
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
Member

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
Member

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
@brandtkeller brandtkeller moved this to Triage in Zarf Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

2 participants