skywire icon indicating copy to clipboard operation
skywire copied to clipboard

A small tip about dependency "github.com/ccding/go-stun/stun"

Open Rick-xuy opened this issue 2 years ago • 0 comments

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.

Rick-xuy avatar Feb 19 '23 09:02 Rick-xuy