-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
vscode-utils: Set the sourceRoot attribute on vscode extensions #289721
vscode-utils: Set the sourceRoot attribute on vscode extensions #289721
Conversation
Some extensions contain directories other than `extension` (e.g., `package`, if the extension has a digital signature). The unpacker phase fails if a .vsix file contains more than one directory at the archive's root and the `sourceRoot` attribute is unset.
It would be very helpful, if this PR is merged. It is breaking my nixos-rebuild due to having lot of VSCode extenstions in my configuration. Thanks for all hard work of the contributors. |
Result of 303 packages built:
|
Result of 1 package marked as broken and skipped:
4 packages built:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
303 packages built fine. (Can still go in master because it is a fast build.)
LGTM
@superherointj Is it okay for this to be back ported to release-23.11? |
Successfully created backport PR for |
Some extensions for VSCode contain directories other than
extension
(e.g.,package
, if the extension has a digital signature). The unpacker phase fails if a .vsix file contains more than one directory at the archive's root and thesourceRoot
attribute is unset.I've recently encountered this issue with
ms-vscode.cmake-tools
, which, since 1.17.15, is digitally signed. Others have encountered this issue as well:In particular, nix-community/nix-vscode-extensions#31 suggests setting
sourceRoot
usingoverrideAttrs
. However, since VSCode extensions have a well-defined structure, setting thesourceRoot
for all extensions is valid.nix-vscode-extensions
uses the functions invscode-utils
so it will inherit the fix (which I've verified locally).Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.