Exclude a dependency version from selection.
Section: Dependency Updates
Exclude bad version
bash
bash
go mod edit -exclude example.com/lib@v1.2.4Explanation
Exclude a dependency version from selection. Useful in Go CLI workflows.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Dependency Updates