报错:missing go.sum entry for module providing package github.com/stretchr/testify/assert (imported by GinCasbin/test);
解决方法:
❯ go mod edit -require github.com/gin-gonic/gin@latest
❯ go mod tidy
再执行go test成功:
报错:missing go.sum entry for module providing package github.com/stretchr/testify/assert (imported by GinCasbin/test);
解决方法:
❯ go mod edit -require github.com/gin-gonic/gin@latest
❯ go mod tidy
再执行go test成功: