Skip to content

Add existence check for go.mod and go.sum files#51093

Merged
thaJeztah merged 1 commit intomoby:masterfrom
austinvazquez:add-check-for-missing-go-sum
Oct 3, 2025
Merged

Add existence check for go.mod and go.sum files#51093
thaJeztah merged 1 commit intomoby:masterfrom
austinvazquez:add-check-for-missing-go-sum

Conversation

@austinvazquez
Copy link
Copy Markdown
Contributor

- What I did
Follow-up to #51090

- How I did it
Added a check for top-level go.mod and go.sum files exist.

- How to verify it

- Human readable description for the release notes

- A picture of a cute animal (not mandatory but encouraged)

@austinvazquez austinvazquez self-assigned this Oct 3, 2025
@austinvazquez austinvazquez marked this pull request as ready for review October 3, 2025 13:05
@austinvazquez austinvazquez requested a review from tianon as a code owner October 3, 2025 13:05
@austinvazquez austinvazquez requested a review from vvoland October 3, 2025 13:06
@austinvazquez
Copy link
Copy Markdown
Contributor Author

@thaJeztah , @vvoland , do you folks have any thoughts if I should be checking the same for api and client module files? Wrote just the top level for now so this can more easily backported to 28.x release branch.

Copy link
Copy Markdown
Member

@dmcgowan dmcgowan left a comment

Choose a reason for hiding this comment

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

LGTM

I think its worth exploring if there is a more generic alternative to this, I don't see why missing vendors shouldn't produce an error or diff after running tidy + vendor. Any diff after those operations should fail.

@thaJeztah
Copy link
Copy Markdown
Member

do you folks have any thoughts if I should be checking the same for api and client module files? Wrote just the top level for now so this can more easily backported to 28.x release branch.

Ah! Found your "ping" - saw a notification and ... couldn't find it back 😂

Yeah, I think I added something like that in #50947 as well; basically to always run a go mod tidy for the API and Client modules; there's been a couple of cases where they were out of sync, and go mod tidy usually is fast, so probably won't do harm to always run.

Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

let's get this one in as stepping stone

@thaJeztah thaJeztah merged commit e5a66cb into moby:master Oct 3, 2025
189 checks passed
@thaJeztah thaJeztah added this to the 29.0.0 milestone Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants