Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
proposal: module repository health check tool #28590
What version of Go are you using (
Have you thought about integrating some or all of these into
The upside is that we wouldn't need a separate command or service for this, and we'd have a single command to ensure that all modules conform to a certain standard.
The downside is that users need to trust that authors are using the command when doing each release. Perhaps we could let users run the checks themselves too, e.g.
Yes that did indeed cross my mind (but I failed to reference #26420). Rightly or wrongly I thought I'd start discussion about the "health check" separately. But we can/should fold this issue into #26420 in case that's more appropriate.
Much like we have
These tests would surely be very fuzzy... but might be good enough.
Definitely a separate tool.
Just noting the idea here for now.
@myitcv has mentioned multiple times that a tool such as he describes above could be built outside of the core
FYI, this weekend, I put together a very rough cut of something in this ballpark: https://github.com/thepudds/gomodvet
It is very much WIP / prototype level, but wanted to at least mention it. In particular, this first cut was helpful this past weekend to concretely illustrate to some people that some sanity checking is possible to at least increase the odds of catching someone accidentally stepping on some potential modules-related landmines.
Most of those are not strictly speaking "problems" in all cases, but most of those are at least notable situations. (E.g., a module with multiple major versions in a build might be a conscious choice, or might be because someone is doing
You can control what you do / don't want to be told about via a command line flag for each rule.
The intent of
edit: the public