skywire
skywire copied to clipboard
A small tip about dependency "github.com/ccding/go-stun/stun"
There is a require line in go.mod pointing to module github.com/ccding/go-stun/stun
.
https://github.com/skycoin/skywire/blob/master/go.mod#L9
github.com/ccding/go-stun/stun v0.0.0-20200514191101-4dc67bcdb029
It is a submodule version introduced by mistake. Ccding/go-stun
firstly created go.mod
under directory stun
and then the go.mod
was moved to root directory. However, submodule github.com/ccding/go-stun/stun
is therefore cached by GOPROXY.
Depending on this submodule will limit the update of package github.com/ccding/go-stun/stun
. Downstream should depend on root module instead of submodule to import package github.com/ccding/go-stun/stun
. To get rid of it, run go mod edit -droprequire github.com/ccding/go-stun/stun
, go get github.com/ccding/[email protected]
, go mod tidy
should work.