I have library package: https://github.com/go-gfx/go-skia
I set its module path as "go101.org/go-skia". (see the go.mod file 
<https://github.com/go-gfx/go-skia/blob/master/go.mod>)

Then I created a new app project.
In its "go.mod" file, I added the following line:

replace go101.org/go-skia => github.com/go-gfx/go-skia latest

Then I run "go build", it outputted:

$ go build
go: finding github.com/go-gfx/go-skia latest
go: errors parsing go.mod:
/home/user/Desktop/ttt/go.mod:3: invalid module version "latest": 
unrecognized import path "go101.org/go-skia" (https fetch: Get 
https://go101.org/go-skia?go-get=1: dial tcp 216.239.36.21:443: i/o timeout)

Why does it connect to "go101.org"? After all, I have replace the package 
path to "github.com" already.

And, how should I add the replace line in "go.mod' file? "latest" is not a 
valid module version?

then I run "go mod tidy", it outputted:

$ go mod tidy
go: downloading github.com/go-gfx/go-skia v0.0.0-20190309194705-3a2f2f5bee30
go: extracting github.com/go-gfx/go-skia v0.0.0-20190309194705-3a2f2f5bee30
go: finding github.com/veandco/go-sdl2 v0.0.0-00010101000000-000000000000
go: finding github.com/chsc/gogl v0.0.0-00010101000000-000000000000
go: finding github.com/go-gl/gl v0.0.0-00010101000000-000000000000
go: github.com/chsc/gogl@v0.0.0-00010101000000-000000000000: unknown 
revision 000000000000
go: github.com/veandco/go-sdl2@v0.0.0-00010101000000-000000000000: unknown 
revision 000000000000
go: github.com/go-gl/gl@v0.0.0-00010101000000-000000000000: unknown 
revision 000000000000
go: error loading module requirements
$
$ go build
go: finding github.com/go-gfx/go-skia latest
go: finding github.com/go-gl/gl v0.0.0-00010101000000-000000000000
go: finding github.com/chsc/gogl v0.0.0-00010101000000-000000000000
go: finding github.com/veandco/go-sdl2 v0.0.0-00010101000000-000000000000
go: github.com/chsc/gogl@v0.0.0-00010101000000-000000000000: unknown 
revision 000000000000
go: github.com/go-gl/gl@v0.0.0-00010101000000-000000000000: unknown 
revision 000000000000
go: github.com/veandco/go-sdl2@v0.0.0-00010101000000-000000000000: unknown 
revision 000000000000
go: error loading module requirements

How should I do to use this library package?



-- 
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 golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to