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: The "Call your code from another module" tutorial has a typo in a command #46861

Closed
kova98 opened this issue Jun 21, 2021 · 5 comments

Comments

@kova98
Copy link

kova98 commented Jun 21, 2021

In the Call your code from another module tutorial, a command in step 5.1. has a typo:

$ go mod edit -replace=example.com/greetings=../greetings

should be

$ go mod edit -replace example.com/greetings=../greetings

@gopherbot gopherbot added this to the Unreleased milestone Jun 21, 2021
@bcmills
Copy link
Contributor

bcmills commented Jun 21, 2021

CC @stevetraut @jayconrod

@bcmills
Copy link
Contributor

bcmills commented Jun 21, 2021

@kova98, are you sure it's a typo? I would expect both of those forms to work equivalently.

@kova98
Copy link
Author

kova98 commented Jun 21, 2021

@bcmills I assumed it was a typo. The first command outputs the following error:

go mod: -replace=: need old[@v]=new[@w] (missing =)

I am using Powershell.

@bcmills
Copy link
Contributor

bcmills commented Jun 21, 2021

That's a Powershell bug (PowerShell/PowerShell#6291).

@bcmills
Copy link
Contributor

bcmills commented Jun 21, 2021

Duplicate of #44924

@bcmills bcmills marked this as a duplicate of #44924 Jun 21, 2021
@bcmills bcmills closed this as completed Jun 21, 2021
@golang golang locked and limited conversation to collaborators Jun 21, 2022
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