问题描述:
老代码改gomod遇到区分大小写问题
module declares its path as: github.com/sirupsen/logrus
but was required as: github.com/Sirupsen/logrus
解决办法:套娃
replace (
github.com/Sirupsen/logrus v1.5.0 => github.com/sirupsen/logrus v1.5.0
github.com/sirupsen/logrus v1.5.0 => github.com/Sirupsen/logrus master
)
搞定
有用
github.com/Sirupsen/logrus v1.8.1 => github.com/sirupsen/logrus v1.8.1
github.com/sirupsen/logrus v1.8.1 => github.com/Sirupsen/logrus v1.8.2-0.20220112234510-85981c045988