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

Use default gopath supported in Go 1.8 - #820

Merged
Ramya Rao (ramya-rao-a) merged 4 commits into
microsoft:masterfrom
ramya-rao-a:default-gopath
Feb 27, 2017
Merged

Use default gopath supported in Go 1.8#820
Ramya Rao (ramya-rao-a) merged 4 commits into
microsoft:masterfrom
ramya-rao-a:default-gopath

Conversation

@ramya-rao-a

Copy link
Copy Markdown
Contributor

Fixes #813

Comment thread src/goInstallTools.ts Outdated
if (err) {
return reject();
}
let gopathOutput = stdout.split('\n').find((value, index) => { return value.startsWith('GOPATH="') && value.endsWith('"'); });

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe could leave a \r after the split - you can split on /\r\n|\n/ or trim

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch, done

@ramya-rao-a
Ramya Rao (ramya-rao-a) merged commit e51a915 into microsoft:master Feb 27, 2017
@ramya-rao-a
Ramya Rao (ramya-rao-a) deleted the default-gopath branch April 9, 2017 16:58
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.

2 participants