-
Notifications
You must be signed in to change notification settings - Fork 13
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
Enable linking on other operating systems #666
Conversation
…i into enable-symlinks-172342127
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this adding go.mod and go.sum files for go-conpty, go-expect, termtest, and xpty? Did martin miss that or did you run a bad command or something?
internal/runners/deploy/deploy.go
Outdated
@@ -146,7 +144,7 @@ func install(installer installable, out output.Outputer) (runtime.EnvGetter, err | |||
if fail != nil { | |||
return envGetter, errs.Wrap(fail, "Install failed") | |||
} | |||
if ! installed { | |||
if !installed { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please avoid space/syntax changes like this in your PRs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is from my formatter running on save. I've tried with both goreturns
and gofmt
. Which one are you using? Just so I can avoid making these changes without realizing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Goland uses its own formatter, but the key thing is that you configure it to only reformat lines that you have actually changed. This should be an option in vscode.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this is still a feature request in vscode 😒
microsoft/vscode#44075
Maybe the Go tooling can handle this but I haven't found anything yet.
…i into enable-symlinks-172342127
Re the |
if rt.GOOS == "windows" { | ||
originalExtenstions := os.Getenv("PATHEXT") | ||
baseEnv["PATHEXT"] = originalExtenstions + ";.LNK" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem necessary for our tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
virtualenvironment.GetEnv()
now returns an environment with this updated PATHEXT
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know, but what does that have to do with the code in this test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The report function calls virtualenvironment.GetEnv()
so it now includes the updated PATHEXT
…i into enable-symlinks-172342127
https://www.pivotaltracker.com/story/show/172342127