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
Author of github.com/gorilla/rpc placed v2 of it's library to v2 directory. As he was apparently not using go modules, this was perfectly valid move. Which unfortunately ends in a situation gorilla/rpc/v2 is illegal for use with go modules. And fixing the problem breaks backward compatibility for non module users.
What did you expect to see?
go build or go vet should issue a warning in this case. Especially if such directory contains go source files. That way the well known compatibility problem will be reported for developers unaware about Go modules.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes!
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Author of github.com/gorilla/rpc placed v2 of it's library to
v2
directory. As he was apparently not using go modules, this was perfectly valid move. Which unfortunately ends in a situation gorilla/rpc/v2 is illegal for use with go modules. And fixing the problem breaks backward compatibility for non module users.What did you expect to see?
go build or go vet should issue a warning in this case. Especially if such directory contains go source files. That way the well known compatibility problem will be reported for developers unaware about Go modules.
Reference: gorilla/rpc#65
The text was updated successfully, but these errors were encountered: