Skip to content

Conversation

@jeffwidman
Copy link
Collaborator

go mod tidy -diff ensures the go.mod and go.sum files remain correct. If anything is amiss, it will print the diff along with an error code and then exit.

`go mod tidy -diff` ensures the `go.mod` and `go.sum` files remain correct. If anything is amiss, it will print the diff along with an error code and then exit.
@jeffwidman
Copy link
Collaborator Author

The error is because the -diff flag wasn't added to go mod tidy until go 1.23: https://tip.golang.org/doc/go1.23#go-command

Once this library starts using 1.23 or higher, this PR will start passing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants