-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
proposal: cmd/go: add go work toggle flag (impossible?) #57090
Comments
Since you say that this is not |
Cause the binary won't set the variable of the system. You're right. RIP |
If
How does this fail to honor the environment variable? |
We're not going to have multiple ways of doing things, especially something like Such a thing seems better suited as aliases / local scripts to your environment. |
This proposal has been added to the active column of the proposals project |
This proposal has been declined as infeasible. |
Repost of #57085 because it was closed due to
go env -w
, but that command doesn't implement the behavior described.Developers are required to use environment variables to switch in and out of workspace mode. This means using
set GOWORK=off
orexport GOWORK=off
depending on the platform. This in itself is problematic since you have to give out two different instructions (which depend on the user OS). In order to go back into workspace mode, you need to set the GOWORK variable back. If you are dealing with a long path it's time consuming and prone to error.Toggle Flag
go work toggle
When GOWORK is set, switches the GO Workspace to
off
.When GOWORK is
off
, switches the GO Workspace to current directory.Flags
-d
- Set directory to switch to using relative path.The text was updated successfully, but these errors were encountered: