Skip to content
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

Merged
merged 46 commits into from
Apr 28, 2020
Merged

Conversation

MDrakos
Copy link
Member

@MDrakos MDrakos commented Apr 24, 2020

@MDrakos MDrakos requested a review from Naatan April 27, 2020 18:40
Copy link
Member

@Naatan Naatan left a 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?

@@ -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 {
Copy link
Member

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

Copy link
Member Author

@MDrakos MDrakos Apr 27, 2020

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.

Copy link
Member

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.

Copy link
Member Author

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.

internal/runners/deploy/helpers_lin_mac.go Outdated Show resolved Hide resolved
internal/runners/deploy/deploy.go Outdated Show resolved Hide resolved
internal/runners/deploy/helpers_win.go Outdated Show resolved Hide resolved
internal/runners/deploy/deploy_test.go Outdated Show resolved Hide resolved
internal/runners/deploy/deploy.go Outdated Show resolved Hide resolved
internal/runners/deploy/helpers_win.go Outdated Show resolved Hide resolved
internal/runners/deploy/deploy_test.go Outdated Show resolved Hide resolved
internal/runners/deploy/helpers_win.go Outdated Show resolved Hide resolved
@MDrakos MDrakos requested a review from Naatan April 28, 2020 18:13
internal/fileutils/fileutils.go Outdated Show resolved Hide resolved
internal/runners/deploy/deploy.go Outdated Show resolved Hide resolved
internal/runners/deploy/helpers_win.go Outdated Show resolved Hide resolved
internal/runners/deploy/helpers_win.go Outdated Show resolved Hide resolved
pkg/platform/runtime/camel.go Outdated Show resolved Hide resolved
internal/runners/deploy/helpers_win.go Outdated Show resolved Hide resolved
@MDrakos
Copy link
Member Author

MDrakos commented Apr 28, 2020

Re the go.mod and go.sum files. The only commands I ran were go mod vendor and go mod tidy

@MDrakos MDrakos requested a review from Naatan April 28, 2020 21:30
internal/runners/deploy/deploy.go Outdated Show resolved Hide resolved
Comment on lines 174 to 177
if rt.GOOS == "windows" {
originalExtenstions := os.Getenv("PATHEXT")
baseEnv["PATHEXT"] = originalExtenstions + ";.LNK"
}
Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member

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?

Copy link
Member Author

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

@MDrakos MDrakos requested a review from Naatan April 28, 2020 22:15
@MDrakos MDrakos merged commit bb6ceca into master Apr 28, 2020
@MDrakos MDrakos deleted the enable-symlinks-172342127 branch April 28, 2020 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants