github / codeql-go

The CodeQL extractor and libraries for Go.
MIT License
464 stars 126 forks source link

Run `go mod tidy -e` before building #730

Closed owen-mc closed 2 years ago

owen-mc commented 2 years ago

I think this works. The easiest way to test it is to delete lines from go.mod and/or go.sum and check that it works and prints log messages that make sense.

smowton commented 2 years ago

After looking at this some more I've decided to just gate this by Go >= 1.16 and then commit -- the other options re: checking whether mod-tidy would help or not were tangly and the number of projects lost to a failed tidy operation is low.