-
|
In a Github CI build, I hit the issue of golangci-lint. The project relies on a third-party library that does not have a go. sum file. More detailed log is at https://github.com/robotLJW/servicecomb-service-center/runs/2518134210
Third party Library: https://github.com/jinzhu/copier/blob/master/go.mod. Do I need to delete the go.mod file or add the go.sum file. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hello, Your problem is not because You have to add the You also have to remove this line: https://github.com/apache/servicecomb-service-center/blob/9d50638496e37fa3e5bfac388e382f932430b10c/.gitignore#L42 https://github.com/jinzhu/copier doesn't have to add a
https://github.com/golang/go/wiki/Modules#releasing-modules-all-versions
|
Beta Was this translation helpful? Give feedback.
Hello,
Your problem is not because
copierdoesn't have ago.sumfile but because your project doesn't have ago.sumfileYou have to add the
go.sumfile by executing the following command:go mod tidyYou also have to remove this line: https://github.com/apache/servicecomb-service-center/blob/9d50638496e37fa3e5bfac388e382f932430b10c/.gitignore#L42
https://github.com/jinzhu/copier doesn't have to add a
go.sumfile because there are no dependencies.https://github.com/golang/go/wiki/Modules#releasing-modules-all-versions
https://blog.golang.org/using-go-module…