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

vscode-extensions.ms-vscode-remote.remote-ssh: init at 0.48.0 #76202

Merged
merged 1 commit into from
Dec 25, 2019

Conversation

tbenst
Copy link
Contributor

@tbenst tbenst commented Dec 23, 2019

Motivation for this change

Currently, using VSCode extension remote-ssh with NixOS host requires an annoying patch. This client-side patch changes the package so the host node (as found by which node) is always used.

Main limitation: prior to patch, you could remote-ssh to Ubuntu without nodejs_12 installed, and it would work by locally installing node binary. With this patch, you'll need to first sudo apt install nodejs or install nodejs in userspace via another means.

Benefit: as long as a NixOS box has nodejs-12_x installed, it now works out-of-the-box with remote-ssh. As does any other old OS, so this effectively fixes microsoft/vscode-remote-release#103.

Closes nix-community/home-manager#939

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify maintainers

Not maintainers, but following people may have input:
cc @simonchatts @luxferresum @aanderse @Mic92

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild 10.rebuild-linux: 0 This PR does not cause any packages to rebuild labels Dec 23, 2019
@Mic92 Mic92 merged commit 330e54e into NixOS:master Dec 25, 2019
@Mic92
Copy link
Member

Mic92 commented Dec 25, 2019

Also mentioned in the wiki: https://nixos.wiki/wiki/Vscode

@tbenst
Copy link
Contributor Author

tbenst commented Dec 25, 2019

Hey @Mic92, apologies but this pull request has a mistake--I neglected to escape the ${ so trigger template javascript. My latest https://github.com/tbenst/nixpkgs/tree/remote-ssh has the fix (including one for useLocalExtensions as well) and is fully functional. Sorry for the hassle

@Mic92
Copy link
Member

Mic92 commented Dec 25, 2019

Can you make a pull request with the fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10.rebuild-darwin: 0 This PR does not cause any packages to rebuild 10.rebuild-linux: 0 This PR does not cause any packages to rebuild
Projects
None yet
2 participants