Skip to content

fix(deps): update go dependencies #255

fix(deps): update go dependencies

fix(deps): update go dependencies #255

name: Check generate-module-dependencies
permissions:
contents: read
on: pull_request
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 0
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
with:
go-version: '1.25.x'
- name: Run tests
run: |
cd tools/generate-module-dependencies
go test -v .
- name: Run generate-module-dependencies
run: |
make generate-module-dependencies
- name: Check for go.mod changes
run: |
# List changed go.mod files (added/modified/deleted)
CHANGED=$(git diff --name-only --ignore-all-space | grep -E '(^|/)go\.mod$' || true)
if [ -n "$CHANGED" ]; then
echo "::error::go.mod files are out of sync with generate-module-dependencies."
echo "The following go.mod files changed:"
echo "$CHANGED"
echo
echo "Diff:"
git --no-pager diff -- $CHANGED || true
echo
echo "To fix locally:"
echo " Ensure that you update the dependency-replacements.yaml file and run make generate-module-dependencies"
exit 1
fi