昨天正常运行,第二天不行了,导入了
import (
_ "github.com/go-sql-driver/mysql"
"github.com/jinzhu/gorm"
)
第二天运行报错:
go: finding cloud.google.com/go v0.37.4
go: cloud.google.com/go@v0.37.4: unknown revision v0.37.4
go: error loading module requirements
蒙蔽的一塌糊涂,求大神引导
把这个语句写到 go.mod 最下面
replace cloud.google.com/go => github.com/googleapis/google-cloud-go v0.37.4
#2