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

Mutualize git clones #39

Merged
merged 2 commits into from
Jul 25, 2024
Merged

Mutualize git clones #39

merged 2 commits into from
Jul 25, 2024

Conversation

Annih
Copy link
Contributor

@Annih Annih commented Jul 25, 2024

When using multiple cookbooks from a mono-repo, we used to clone the repo multiple times.
=> Now we clone only once.

Also use a single TmpDir for all operations (git clone & policy update) which will be clean at the end. Former code was creating many tmpdir.

Annih added 2 commits July 25, 2024 11:27
With recent Chef version, we only use knife
When using multiple cookbooks from a mono-repo, we used to clone the
repo multiple times. => Now we clone only once.

Also use a single TmpDir for all operations (git clone & policy update)
which will be clean at the end. Former code was creating many tmpdir
with no explicit clean up.
@Annih Annih merged commit 6b63d86 into master Jul 25, 2024
2 checks passed
@Annih Annih deleted the mutualize_git_clones branch July 25, 2024 11:38
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.

3 participants