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

Remove dependency on HOME env var#103

Merged
cmoog merged 1 commit intomasterfromfix-windows-home
Aug 31, 2020
Merged

Remove dependency on HOME env var#103

cmoog merged 1 commit intomasterfromfix-windows-home
Aug 31, 2020

Conversation

cmoog
Copy link
Contributor

Closes#102

@cmoogcmoog requested a review fromwbobeirneAugust 31, 2020 19:33
@wbobeirnewbobeirne requested review fromcreack and removed request forwbobeirneAugust 31, 2020 20:33
@wbobeirne
Copy link

Tagging in@creack as both a Go wizard, and a Windows user

cmoog reacted with thumbs up emoji

@cmoog
Copy link
ContributorAuthor

Tagging in@creack as both a Go wizard, and a Windows user

Sounds good. It should be noted that I amdefinitelynot a windows user.

@creack
Copy link
Contributor

For the records, I am not either!, But I'll look into it :)

@@ -52,11 +52,14 @@ func configSSH(configpath *string, remove *bool) func(cmd *cobra.Command, _ []st
ctx, cancel := context.WithCancel(context.Background())
defer cancel()

usr, err := user.Current()
Copy link
Contributor

Choose a reason for hiding this comment

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

That is going to be a problem on some systems and will prevent us from shipping a static binaries.
It has been a while, I'm looking into this to see the extent, it might have improved.

Copy link
Contributor

Choose a reason for hiding this comment

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

Alright, I didn't see we were using it before already.
I checked and at least in go1.15, it does work without cgo! Which is quite neat.

cmoog reacted with thumbs up emoji
Copy link
Contributor

Choose a reason for hiding this comment

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

Tested with and without cgo, and tested on windows, works as expected.
Slight note on windows, the path output has double\.
window ssh-config coder-cli

cmoog reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Pushed a fix that resolves the double\ (straight to master by accident 😰 ).

@@ -52,11 +52,14 @@ func configSSH(configpath *string, remove *bool) func(cmd *cobra.Command, _ []st
ctx, cancel := context.WithCancel(context.Background())
defer cancel()

usr, err := user.Current()
Copy link
Contributor

Choose a reason for hiding this comment

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

Alright, I didn't see we were using it before already.
I checked and at least in go1.15, it does work without cgo! Which is quite neat.

cmoog reacted with thumbs up emoji
@@ -52,11 +52,14 @@ func configSSH(configpath *string, remove *bool) func(cmd *cobra.Command, _ []st
ctx, cancel := context.WithCancel(context.Background())
defer cancel()

usr, err := user.Current()
Copy link
Contributor

Choose a reason for hiding this comment

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

Tested with and without cgo, and tested on windows, works as expected.
Slight note on windows, the path output has double\.
window ssh-config coder-cli

cmoog reacted with thumbs up emoji
@cmoogcmoog merged commit90dfe59 intomasterAug 31, 2020
@cmoogcmoog deleted the fix-windows-home branchAugust 31, 2020 21:49
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@creackcreackcreack 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.

Windows distro uses HOME env var which is commonly not available
3 participants
@cmoog@wbobeirne@creack

[8]ページ先頭

©2009-2025 Movatter.jp