Skip to content

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

Merged
Mic92 merged 1 commit into
NixOS:masterfrom
tbenst:remote-ssh
Dec 25, 2019
Merged

Mic92 merged 1 commit into
NixOS:masterfrom
tbenst:remote-ssh

Conversation

@tbenst

@tbenst tbenst commented Dec 23, 2019 •

Copy link
Copy Markdown
Contributor
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

@tbenst
tbenst requested a review from jonringer as a code owner December 23, 2019 02:33
@ofborg ofborg Bot added 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 Dec 23, 2019
@Mic92
Mic92 merged commit 330e54e into NixOS:master Dec 25, 2019
@Mic92

Mic92 commented Dec 25, 2019

Copy link
Copy Markdown
Member

@tbenst

tbenst commented Dec 25, 2019

Copy link
Copy Markdown
Contributor Author

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

Mic92 commented Dec 25, 2019

Copy link
Copy Markdown
Member

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 on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

2 participants