-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
Typo in tutorial/call-module-code #44906
Comments
|
Except, if you try it, it doesn't work a per example in tutorial - perhaps adding quotes would also be a suitable fix; This may only break on Windows too. edited report to point out Windows and update examples to make it clearer, sorry |
Ahh yeah it looks like it's only in power shell, even cmd runs it fine. |
My fault for trying an IDE instead of just vi... |
If you want to contribute the fix please read https://golang.org/doc/contribute |
OK, will try, thanks. |
I think this is probably a duplicate of #43179 and an example of the still unfixed PowerShell/PowerShell#6291. |
What version of Go are you using (
go version
)?Tutorial website / go 1.16
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?https://golang.org/doc/tutorial/call-module-code ->
https://github.com/golang/website/blob/7e301e09e5c301ad4c225e8e240b6c3a0ba3d138/_content/doc/tutorial/call-module-code.html#L147
(Tested on Windows under VSC Terminal)
What did you do?
Reading, following examples
What did you expect to see?
PS C:\Users\peter\go> go mod edit -replace="example.com/greetings=../greetings"
go: cannot find main module; see 'go help modules'
What did you see instead?
PS C:\Users\peter\go> go mod edit -replace=example.com/greetings=../greetings
go mod: -replace=example: need old[@v]=new[@w] (missing =)
The text was updated successfully, but these errors were encountered: