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
cd `mktemp -d`
export GOPATH=$PWD
mkdir hello
cd hello
vgo mod -init -module example.com/hello
vgo mod -require rsc.io/quote@v1.5.2
vgo mod -replace rsc.io/quote@v1.5.2=>github.com/myitcv/vgo-by-example-quote-fork@master
gives:
bash: github.com/myitcv/vgo-by-example-quote-fork@master: No such file or directory
What did you expect to see?
Because the value passed to the -require flag is not quoted, this output is expected (at least in Bash).
So I wonder whether we should either:
do nothing, on the basis vgo mod will mostly be called by tools (assuming it will)
change the format of the value passed to the -require flag
quote the example:
...
The -replace='old@v=>new@w' and -dropreplace=old@v flags
add and drop a replacement of the given module path and version pair.
Note that -replace overrides any existing replacements for old@v.
...
because it feels like this is something that people will unwittingly fall foul of.
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?What did you do?
gives:
What did you expect to see?
Because the value passed to the
-require
flag is not quoted, this output is expected (at least in Bash).So I wonder whether we should either:
vgo mod
will mostly be called by tools (assuming it will)-require
flagbecause it feels like this is something that people will unwittingly fall foul of.
/cc @rsc @bcmills
The text was updated successfully, but these errors were encountered: