This repository was archived by the owner on Jun 30, 2026. It is now read-only.
Repository navigation
Add SSH wrapper for macOS - #13
Merged
Merged
Conversation
sergiou87
commented
Aug 16, 2021
| name: Install Windows arm64 node.lib | ||
|
|
||
| - name: Install and build | ||
| run: yarn |
Member
Author
There was a problem hiding this comment.
This was installing prebuilt binaries of the trampoline and wrapper 🤯
sergiou87
commented
Aug 16, 2021
Comment on lines
+14
to
+19
| // On Windows, the binary generated is just useless, so no point to test it. | ||
| // Also, this won't be used on Linux (for now at least), so don't bother to | ||
| // run the tests there. | ||
| if (process.platform !== 'darwin') { | ||
| return | ||
| } |
sergiou87
commented
Aug 16, 2021
Comment on lines
+1
to
+6
| #ifdef WINDOWS | ||
|
|
||
| int main(int argc, char **argv) { | ||
| // Not needed on Windows, this will just create a dummy executable | ||
| return -1; | ||
| } |
tidy-dev
approved these changes
Aug 16, 2021
tidy-dev
left a comment
Contributor
There was a problem hiding this comment.
✨ Makes sense to me.. and I don't have any suggestions for another approach for being os specific. :/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the SSH wrapper needed on macOS for Desktop to intercept prompts from SSH via the askpass trampoline.
Since it's only required on macOS, I've tried to disable Windows builds… but that can't be easily done via the
binding.gypfile. Instead I would need to do something to exclude the newssh-wrappertarget before runningnode-gyp rebuild. For now, I just made a dummy exe file on Windows that does nothing.Something similar happened with the tests, since don't want them to run on Windows. I didn't see a way of excluding certain test suites in certain platforms, so I had to keep one test case that checks
ssh-wrapper.exeexists and ignore the rest 😢 EDIT: and after having some issues with the ssh-wrapper tests on Linux, I disabled them there 😅I'm not proud of this, and definitely open to suggestions!!