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

[Feature] Implement modular cache system, referencing PNPM's model #7

Open
Qonfused opened this issue Jul 20, 2023 · 0 comments
Open
Labels
project:cli project:library status:in-progress Implementation is in progress. type:feature New feature request
Milestone

Comments

@Qonfused
Copy link
Owner

Follow-up to #4 (comment).

The basic idea is to add an additional packages scope under the lock file that contains filepath locations to either a (project) local or global cache, which can store additional metadata and checksums useful for revalidating cache and avoiding duplicate external requests. This will additionally update the cacheKey to ensure updated caches cooperate with external caching systems (e.g. through GitHub Actions).

Additionally, by performing a check against the stored checksum (when updating cache), this approach can harden security against supply chain attacks by leveraging these checksums as a source of truth for the package contents. This addresses a potential concern raised in #4 (comment) without much additional work to the caching model.

@Qonfused Qonfused added this to the v1.1.0 milestone Jul 20, 2023
@Qonfused Qonfused added type:feature New feature request status:in-progress Implementation is in progress. project:cli project:library labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project:cli project:library status:in-progress Implementation is in progress. type:feature New feature request
Projects
None yet
Development

No branches or pull requests

1 participant