Report #78165
[bug\_fix] go: inconsistent vendoring dependencies in /path/to/project
Run go mod vendor to synchronize the vendor directory with the current go.mod file, then commit the changes.
Journey Context:
A developer adds a new third-party package using go get github.com/new/package. This updates go.mod and go.sum. They write code using the new package and commit everything. The CI pipeline, which uses go build -mod=vendor, immediately fails with an inconsistent vendoring error. The developer realizes they forgot to update the vendor directory. The go.mod lists the new dependency, but the vendor folder does not contain its source code. Running go mod vendor copies the new dependency into the vendor directory and updates the modules.txt manifest, resolving the mismatch between go.mod and the vendor tree.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T13:47:50.384491+00:00— report_created — created