Skip to content

Conversation

@Piotr1215
Copy link
Contributor

@Piotr1215 Piotr1215 commented Jan 6, 2026

Closes OPS-368

Note

Adds a CI check to enforce Go module and vendor consistency in the lint workflow.

  • New step in .github/workflows/lint.yaml runs go mod tidy and go mod vendor, then fails if go.mod, go.sum, or vendor/ differ from committed state
  • Workflow-only change; no application code modified

Written by Cursor Bugbot for commit 33ac610. This will update automatically on new commits. Configure here.

PRs occasionally merged with out-of-sync vendor directories, causing
build failures after merge. Root cause: go mod tidy/vendor not run
before committing changes to go.mod or Go files.

This check runs go mod tidy && go mod vendor, then uses git status
--porcelain to detect any uncommitted changes. Fails fast with clear
instructions if developer forgot to sync.

Follows existing pattern from "Verify schema changes" step in same
workflow.

Related: OPS-368
Copy link
Contributor

@sydorovdmytro sydorovdmytro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approving with a small hint

- name: Verify go mod tidy and vendor
run: |
go mod tidy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go mod tidy --diff will cause non 0 exit code if changes are required.

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