I host a package on github: https://github.com/go101/tinyrouter
And I decided to use "go101.org/tinyrouter" as its import path.
Then in a program which import the package:
// main.go
package main
import (
_ "go101.org/tinyrouter"
)
func main() {
}
// go.mod
module app
replace go101.org/tinyrouter => github.com/go101/tinyrouter v1.0.0
When I build it, it reports errors:
$ go build -v -x
WORK=/tmp/go-build304435862
Fetching https://go101.org/tinyrouter?go-get=1
Parsing meta tags from https://go101.org/tinyrouter?go-get=1 (status code
404)
Fetching https://go101.org?go-get=1
Parsing meta tags from https://go101.org?go-get=1 (status code 200)
build a.b/app: cannot find module for path go101.org/tinyrouter
The go command still connect to https://go101.org?
Shouldn't it connect github.com instead?
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.