Skip to content

missing go.sum entry #1958

Closed Answered by ldez
robotLJW asked this question in Q&A
May 7, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hello,

Your problem is not because copier doesn't have a go.sum file but because your project doesn't have a go.sum file

You have to add the go.sum file by executing the following command: go mod tidy

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 go.sum file because there are no dependencies.

Ensure your go.sum file is committed along with your go.mod file.

https://github.com/golang/go/wiki/Modules#releasing-modules-all-versions

Both go.mod and go.sum should be checked into version control.

https://blog.golang.org/using-go-module…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@robotLJW
Comment options

Answer selected by ldez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants