Skip to content

vscode-utils.buildVscodeExtension: set passthru.updateScript default to vscode-extension-update-script#404503

Merged
drupol merged 1 commit intomasterfrom
unknown repository
May 12, 2025
Merged

vscode-utils.buildVscodeExtension: set passthru.updateScript default to vscode-extension-update-script#404503
drupol merged 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link

@ghost ghost commented May 5, 2025

This script has been in use for some time, and I think it can now be set as the default to reduce the maintenance burden on maintainers. It is used in #396204 #395472. It was used in the following bulk updates #399772 #396986

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added 6.topic: vscode A free and versatile code editor that supports almost every major programming language. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels May 5, 2025
@ghost ghost marked this pull request as ready for review May 6, 2025 14:01
{
updateScript = vscode-extension-update-script { };
}
// passthru
Copy link
Contributor

Choose a reason for hiding this comment

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

@ShamrockLee Can you have a look at this and let me know if this is the proper way to do this?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'll take a look this wekend.

Copy link
Contributor

@ShamrockLee ShamrockLee May 11, 2025

Choose a reason for hiding this comment

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

I haven't read through the complete update script. Here are some comments:

  1. Update scripts based on vsce is certainly a good idea.
  2. Current vscode-utils.fetchVsixFromVscodeMarketplace uses the "legacy" URL pattern instead of the one currently used by VSCode to download the extensions. I had a concern that it didn't support targetPlatform aside from `universal (nix-prefetch-vscode-marketplace, nix-prefetch-openvsx: init at 0.1.0 #161369 (comment)), but such concern is now addressed by PR vscode-extensions.ms-vscode.cpptools: 1.9.1 -> 1.11.0 #178513.

@drupol drupol merged commit e5c2aa8 into NixOS:master May 12, 2025
40 checks passed
@ghost ghost deleted the vscode-utils branch May 12, 2025 09:48
@ghost ghost removed 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 6.topic: vscode A free and versatile code editor that supports almost every major programming language. labels Jul 11, 2025
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