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

x/website: go.work details in Workspace posts #51817

Closed
ronaldpetty opened this issue Mar 19, 2022 · 4 comments
Closed

x/website: go.work details in Workspace posts #51817

ronaldpetty opened this issue Mar 19, 2022 · 4 comments

Comments

@ronaldpetty
Copy link

Hello,

I am new to Go workspaces. I am looking around the various blog posts and unclear where one should place go.work.

The go help work also doesn't mention where it should go.

Again, it is new, I am also new to it, so most likely I am overthinking/looking, but so far seems unclear to me.

@gopherbot gopherbot added this to the Unreleased milestone Mar 19, 2022
@seankhliao
Copy link
Member

The first one does say the directory to create it in.
The second one isn't relevant, workspaces are only for modules.
The third one specifies that go.work files define their own workspaces, there is nowhere in particular that you need to place them.

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.

For questions please refer to https://github.com/golang/go/wiki/Questions

@ronaldpetty
Copy link
Author

Thanks Sean,

Not sure I agree with the assessment, but per your last comment, I added the bug here because the page itself links to "report an issue". Maybe that should link to what you have above.

https://go.dev/doc/tutorial/workspaces (see footer of page)

@seankhliao
Copy link
Member

  1. From the command prompt, create a directory for your code called workspace.
$ mkdir workspace
$ cd workspace

...
Initialize the workspace
In the workspace directory, run:

$ go work init ./hello

@ronaldpetty
Copy link
Author

Sean,
I did indeed see that. What I didn't see is why (or is that the standard place going forward). I know at some point some blogs are high-level tutorials and others are the details. Just trying to figure out what is the expected/right way, but felt like it just wasn't clear. Will keep at it, I am probably just bouncing around too many pages. Thanks again for your time.

@golang golang locked and limited conversation to collaborators Mar 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants