Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

test/integration: use default GOPATH when the env var is not set #3117

Merged
merged 2 commits into from
Mar 28, 2020

Conversation

hyangah
Copy link
Contributor

@hyangah hyangah commented Mar 20, 2020

If the env var GOPATH is not set when the test runs,
now it runs go env GOPATH to retrieve the default value
the underlying go commands will use. I wished I could make
this command run asynchronously, but I am not familiar with
the test framework and failed to make it working with
async functions. So, like many other file operations used in
the test setup phase, I am using execFileSync.

Update golang/vscode-go#6

Change-Id: Id075827ab8ebd955f7a86460aaa7ea4e0e7cd183
GitHub-Last-Rev: 6222158
GitHub-Pull-Request: golang/vscode-go#8
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/223177
Reviewed-by: Andrew Bonventre [email protected]

Copy link
Contributor

@ramya-rao-a ramya-rao-a left a comment

Choose a reason for hiding this comment

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

hyangah added 2 commits March 28, 2020 09:39
If the env var GOPATH is not set when the test runs,
now it runs `go env GOPATH` to retrieve the default value
the underlying go commands will use. I wished I could make
this command run asynchronously, but I am not familiar with
the test framework and failed to make it working with
async functions. So, like many other file operations used in
the test setup phase, I am using execFileSync.

Update  golang/vscode-go#6

Change-Id: Id075827ab8ebd955f7a86460aaa7ea4e0e7cd183
GitHub-Last-Rev: 6222158
GitHub-Pull-Request: golang/vscode-go#8
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/223177
Reviewed-by: Andrew Bonventre <[email protected]>
@ramya-rao-a ramya-rao-a merged commit 8f5548a into microsoft:master Mar 28, 2020
@hyangah hyangah deleted the upstream_test branch March 29, 2020 02:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants