Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
/coder-v1-cliPublic archive

Warn if coder-cli is not in PATH on Windows#357

Merged
deansheather merged 5 commits intomasterfromtunnel-msys2
Jul 26, 2021

Conversation

deansheather
Copy link
Member

@deansheatherdeansheather commentedMay 21, 2021
edited
Loading

In Powershell and VS Code, the OpenSSH for WindowsProxyCommand is expected to be a binary name likecoder or a Windows-like path such asC:\path\to\coder.exe.

In Msys2 and Git Bash, the Linux-y OpenSSH expects theProxyCommand to be a binary name or a Unix-like path such as/c/path/to/coder.

To support both environments simultaneously, theProxyCommand must be set tocoder (or whatever binary name coder-cli has), and we must warn the user if the binary is not in$PATH.

[CH-15394]

@deansheatherdeansheather changed the titleEnforce coder-cli in PATH on WindowsWarn if coder-cli is not in PATH on WindowsMay 21, 2021
@kylecarbs
Copy link
Member

What's blocking this? Seems like it could be important for thecoder tunnel

@deansheather
Copy link
MemberAuthor

@kylecarbs The package I'm using to check if the binary is in path seems to fail when cross-compiled for Windows from within my workspace, but works when I build on my Windows machine. I may just write my own function that does the same thing.

@deansheatherdeansheather marked this pull request as ready for reviewJuly 24, 2021 07:21
@deansheather
Copy link
MemberAuthor

It works when I removeGOARCH=386 from the windows builds.

@deansheatherdeansheather requested review fromkylecarbs and removed request forkylecarbsJuly 26, 2021 16:55
@@ -212,7 +259,7 @@ func makeSSHConfig(binPath, host, userName, workspaceName, privateKeyFilepath st
host := fmt.Sprintf(
`Host coder.%s
HostName coder.%s
ProxyCommand%s tunnel %s 12213 stdio
ProxyCommand"%s" tunnel %s 12213 stdio
Copy link
Member

Choose a reason for hiding this comment

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

Do the quotes work on Linux too? Ithought I tried it before...

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Works on windows, mac and linux from my testing.

@shortcut-integration
Copy link

This pull request has been linked toClubhouse Story #15394: bug: escape path to coder-cli in .ssh/config.

@deansheatherdeansheatherenabled auto-merge (squash)July 26, 2021 18:59
@deansheatherdeansheather merged commit961f7dd intomasterJul 26, 2021
@deansheatherdeansheather deleted the tunnel-msys2 branchJuly 26, 2021 19:02
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@kylecarbskylecarbskylecarbs approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@deansheather@kylecarbs

[8]ページ先頭

©2009-2025 Movatter.jp