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
go mod -init -module example.com/hello
go mod -require github.com/gopherjs/gopherjs@master
go mod -replace github.com/gopherjs/gopherjs=github.com/myitcv/gopherjs@vgo
cat go.mod
go mod -json
What did you expect to see?
The JSON representation of the go.mod file
What did you see instead?
go: errors parsing go.mod:
/tmp/tmp.KCiNC02W22/hello/go.mod:5: invalid module version ithub.com/myitcv/gopherjs: unrecognized import path "ithub.com/myitcv/gopherjs" (https fetch: Get https://ithub.com/myitcv/gopherjs?go-get=1: x509: certificate has expired or is not yet valid)
because the replace directive has incorrectly written the go.mod file:
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?
No, working with tip.
What operating system and processor architecture are you using (
go env
)?What did you do?
What did you expect to see?
The JSON representation of the
go.mod
fileWhat did you see instead?
because the replace directive has incorrectly written the
go.mod
file:Notice the replace target
ithub.com/myitcv/gopherjs
/cc @rsc @bcmills
The text was updated successfully, but these errors were encountered: