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

Support platform-specific exts, improve cache eviction, add release attrset, filter by vscode version #21

Merged
merged 11 commits into from
May 24, 2023

Conversation

deemp
Copy link
Collaborator

@deemp deemp commented May 20, 2023

This PR introduces the following features.

  1. To close Improve discarding strategy #17, for each extension, I recorded how many times it was missing in the responses from a site. When an extension is missing, it's fetched during an automated update along with the new extensions from a response. The missing times counter of such an extension is incremented. If an extension is missing in the responses a specified number of times it is not tried again and thus gets evicted from cache.

  2. To close rust-analyzer failing with a bad hash #5 and close Support platform-specific extensions #20, I now fetch the platform-specific extensions and put them into the common extensions attrset along with the universal extensions. If an extension has both universal and non-universal versions, the non-universal version is preferred.

  3. To close Filter out pre-release versions #18, I added a separate attrset that can be generated via extensions.${system}.vscode-marketplace-release.

  4. To address the suggestion Filter out pre-release versions #18 (comment), I added an attrset that contains the extensions compatible with VSCode of "your-version". This attrset can be generated like (extensions.${system}.forVSCodeVersion "your-version").vscode-extensions.

@deemp deemp force-pushed the support-platform-specific-exts branch from d14fa32 to 17cffa3 Compare May 20, 2023 14:53
github-actions and others added 8 commits May 20, 2023 14:57
@deemp deemp changed the title Support platform-specific exts, improve cache eviction Support platform-specific exts, improve cache eviction, add release attrset, filter by vscode version May 24, 2023
@deemp deemp merged commit a12ab4a into master May 24, 2023
1 check passed
spikespaz added a commit to spikespaz/dotfiles that referenced this pull request Jun 5, 2023
spikespaz added a commit to spikespaz/dotfiles that referenced this pull request Jun 6, 2023
spikespaz added a commit to spikespaz/dotfiles that referenced this pull request Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant