遇到import path xxx should not have @version问题,如下图: 解决办法:修改go.mod文件,引入包名的版本号后面+incompatible字段,再go mod vendor就不会出现上述问题