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

feat(core): New cache filename format #5929

Merged
merged 8 commits into from Apr 29, 2024

Conversation

chawyehsu
Copy link
Member

@chawyehsu chawyehsu commented Apr 28, 2024

Description

Replaces #4349, with sha1 for shorter output. For a better migration experience and implicit bandwidth saving, old cache files will still be used when available but this check may be removed sometime in the future.

Motivation and Context

Fixes #4327
Closes #4349

How Has This Been Tested?

unit tests added

Checklist:

  • I have read the Contributing Guide.
  • I have ensured that I am targeting the develop branch.
  • I have updated the documentation accordingly.
  • I have updated the tests accordingly.
  • I have added an entry in the CHANGELOG.

Signed-off-by: Chawye Hsu <su+git@chawyehsu.com>
Signed-off-by: Chawye Hsu <su+git@chawyehsu.com>
Signed-off-by: Chawye Hsu <su+git@chawyehsu.com>
@chawyehsu chawyehsu marked this pull request as ready for review April 29, 2024 04:00
Copy link
Member

@niheaven niheaven left a comment

Choose a reason for hiding this comment

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

btw, I believe the migration period should be extended, as many apps are not updated for years.

lib/core.ps1 Outdated Show resolved Hide resolved
test/Scoop-Core.Tests.ps1 Outdated Show resolved Hide resolved
test/Scoop-Core.Tests.ps1 Outdated Show resolved Hide resolved
test/Scoop-Core.Tests.ps1 Outdated Show resolved Hide resolved
test/Scoop-Core.Tests.ps1 Outdated Show resolved Hide resolved
chawyehsu and others added 5 commits April 29, 2024 17:58
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
@chawyehsu
Copy link
Member Author

chawyehsu commented Apr 29, 2024

I have no idea how frequently our users clean and rebuid their caches, but the max extended support period I would do would be 1 year. It is however just an expectation and it may be there for a much longer time - we may forget to update it, most of the time ;)

@niheaven niheaven merged commit 36026f1 into ScoopInstaller:develop Apr 29, 2024
2 checks passed
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.

None yet

2 participants