Skip to content

feat(core): New cache filename format#5929

Merged
niheaven merged 8 commits intoScoopInstaller:developfrom
chawyehsu:patch-3
Apr 29, 2024
Merged

feat(core): New cache filename format#5929
niheaven merged 8 commits intoScoopInstaller:developfrom
chawyehsu:patch-3

Conversation

@chawyehsu
Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread lib/core.ps1 Outdated
Comment thread test/Scoop-Core.Tests.ps1 Outdated
Comment thread test/Scoop-Core.Tests.ps1 Outdated
Comment thread test/Scoop-Core.Tests.ps1 Outdated
Comment thread test/Scoop-Core.Tests.ps1 Outdated
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
Copy Markdown
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
brian6932 pushed a commit to brian6932/Scoop that referenced this pull request Jun 1, 2024
Signed-off-by: Chawye Hsu <su+git@chawyehsu.com>
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
brian6932 pushed a commit to brian6932/Scoop that referenced this pull request Jun 1, 2024
Signed-off-by: Chawye Hsu <su+git@chawyehsu.com>
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
niheaven added a commit that referenced this pull request Jun 30, 2024
Signed-off-by: Chawye Hsu <su+git@chawyehsu.com>
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
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.

2 participants