You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.
I don't see a mention in the README that gorebuild imposes any limitations on one's Go setup, but I see there's an issue that would prevent it from working when one has 2 or more workspaces.
The GOPATH environment variable lists places to look for Go code. On Unix, the value is a colon-separated string. On Windows, the value is a semicolon-separated string. On Plan 9, the value is a list.
So this line, for example, would fail to work as expected if one has 2 or more workspaces:
Because the value of build.Default.GOPATH would be something like /path/to/workspace1:/path/to/workspace2.
The correct solution is to use filepath.SplitList to parse GOPATH environment variable and extract all workspaces that are included. Then, you'd want to process them in a way that works.
You can look at binstale for an example of how to work with multiple workspaces.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I don't see a mention in the README that
gorebuild
imposes any limitations on one's Go setup, but I see there's an issue that would prevent it from working when one has 2 or more workspaces.The GOPATH environment variable is defined as:
So this line, for example, would fail to work as expected if one has 2 or more workspaces:
Because the value of
build.Default.GOPATH
would be something like/path/to/workspace1:/path/to/workspace2
.The correct solution is to use
filepath.SplitList
to parse GOPATH environment variable and extract all workspaces that are included. Then, you'd want to process them in a way that works.You can look at
binstale
for an example of how to work with multiple workspaces.The text was updated successfully, but these errors were encountered: