Skip to content

Conversation

@mbrandenburger
Copy link
Member

This introduces a GHA to check that a PR comes with a clean go.mod/sum.

@mbrandenburger mbrandenburger self-assigned this Oct 30, 2025
@mbrandenburger mbrandenburger added this to the 25Q4 milestone Oct 30, 2025
@mbrandenburger mbrandenburger marked this pull request as ready for review October 30, 2025 14:59
@mbrandenburger
Copy link
Member Author

@AkramBitar I guess this could also be useful for FTS -- please feel free to borrow the GHA script.

- uses: actions/checkout@v5
- uses: actions/setup-go@v6
with:
go-version-file: "go.mod"
Copy link
Contributor

Choose a reason for hiding this comment

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

I noticed that we have more than one go.mod file in FSC:
fabric-smart-client (main) $ find . -name "go.mod"
./platform/fabric/services/state/cc/query/go.mod
./go.mod
./tools/go.mod

Does the check done recursively or we need to check only the one in the root?

Copy link
Member Author

Choose a reason for hiding this comment

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

make tidy runs go mod tidy in all those directories.

@AkramBitar AkramBitar self-requested a review October 30, 2025 17:21
Copy link
Contributor

@adecaro adecaro left a comment

Choose a reason for hiding this comment

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

Nice. LGTM.

@mbrandenburger mbrandenburger merged commit 9cbe82e into hyperledger-labs:main Oct 31, 2025
33 of 34 checks passed
@mbrandenburger mbrandenburger deleted the gha-go-tidy-diff branch October 31, 2025 09:02
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.

3 participants