Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix go vendor #278

Merged
merged 2 commits into from
Jan 7, 2025
Merged

Fix go vendor #278

merged 2 commits into from
Jan 7, 2025

Conversation

RamLavi
Copy link
Member

@RamLavi RamLavi commented Dec 30, 2024

What this PR does / why we need it:
This PR adds a check to CI in order to prevent vendor misalignment

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer (optional):

@RamLavi
Copy link
Member Author

RamLavi commented Dec 30, 2024

@oshoval any ideas why linter fails?

@oshoval
Copy link
Member

oshoval commented Dec 31, 2024

Please try locally / retest unless you already did, and attach more info if exists / add artifact collector in case needed (not sure we need that deep, but sometimes required)

@RamLavi
Copy link
Member Author

RamLavi commented Dec 31, 2024

@oshoval locally (my pc/hades04) running the lint is failing on other things, but the same happens when I run it on main branch so it's unrelated..
Maybe the specific issue here failing the CI is because I ran make vendor using my local go (which has version 1.23.3) ?

@RamLavi
Copy link
Member Author

RamLavi commented Dec 31, 2024

I see dependabot is still trying to bump gprc, maybe merging that will solve the issue?
#276

@RamLavi RamLavi closed this Jan 7, 2025
@RamLavi RamLavi reopened this Jan 7, 2025
@maiqueb
Copy link
Collaborator

maiqueb commented Jan 7, 2025

please rebase. tks

@maiqueb
Copy link
Collaborator

maiqueb commented Jan 7, 2025

Cool, seems your PR is working.

Would you add another commit to address the vendoring discrepancies ?

@maiqueb
Copy link
Collaborator

maiqueb commented Jan 7, 2025

I think the go version we're using is not playing along w/ the version of the toolchain:

i.e. I suspect the go mod's changes are pretty much only the toolchain. Maybe you could align the go version installed w/ the one specified in the toolchain.

Add a step to run 'make vendor' to ensure the vendor directory is
up-to-date, failing the workflow if changes are needed.

Signed-off-by: Ram Lavi <[email protected]>
@RamLavi
Copy link
Member Author

RamLavi commented Jan 7, 2025

@maiqueb without the second commit it fails, so if CI passes now we also know it works

Copy link
Collaborator

@maiqueb maiqueb left a comment

Choose a reason for hiding this comment

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

lgtm

@maiqueb maiqueb merged commit dbbb88b into k8snetworkplumbingwg:main Jan 7, 2025
2 checks passed
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