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

Implement basic NuGet cache purging #58

Merged
merged 1 commit into from
Jun 20, 2024
Merged

Conversation

runesoerensen
Copy link
Contributor

@runesoerensen runesoerensen commented Jun 20, 2024

This PR adds support for purging the NuGet cache layer after a number of restores (largely inspired by the yarn buildpack implementation). The max number of restores need to be adjusted (from 10) based on a number of factors -- especially when support for more granular per-package purging (as described in #15) is implemented.

However, seeing as NuGet package caches can grow quite a bit over time, we'll likely always want to have a hard layer restore limit count, if only to account for scenarios where other approaches do not purge the cache as expected.

@runesoerensen runesoerensen changed the title Purge NuGet cache layer after 10 uses Implement basic NuGet cache purging Jun 20, 2024
@runesoerensen runesoerensen marked this pull request as ready for review June 20, 2024 04:09
@runesoerensen runesoerensen merged commit f466e3f into main Jun 20, 2024
3 checks passed
@runesoerensen runesoerensen deleted the purge-nuget-cache branch June 20, 2024 04:10
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.

1 participant