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

ci: fix the go vendoring check #575

Merged
merged 1 commit into from
Jun 22, 2021
Merged

Conversation

kaworu
Copy link
Member

@kaworu kaworu commented Jun 22, 2021

Before this patch, git diff was used to ensure that Go modules were properly vendored. While it could catch a failure to update a vendored module, it would not fail when a module was not vendored (untracked).

This patch use git status instead of git diff, effectively catching untracked vendored modules as well.

Signed-off-by: Alexandre Perrin alex@kaworu.ch

@kaworu kaworu added 🤖 area/CI Impacts the testing / continuous integration testing of the project. release-note/misc This PR makes changes that have no direct user impact. labels Jun 22, 2021
@kaworu kaworu requested review from tklauser and rolinh June 22, 2021 11:17
@kaworu kaworu self-assigned this Jun 22, 2021
Before this patch, git diff was used to ensure that Go modules were
properly vendored. While it could catch a failure to update a vendored
module, it would not fail when a module was not vendored (untracked).

This patch use git status instead of git diff, effectively catching
untracked vendored modules as well.

Signed-off-by: Alexandre Perrin <alex@kaworu.ch>
Copy link
Member

@tklauser tklauser left a comment

Choose a reason for hiding this comment

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

Good catch, thank you!

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jun 22, 2021
@tklauser tklauser merged commit d8e9252 into master Jun 22, 2021
@tklauser tklauser deleted the pr/kaworu/ci/fix-go-mod-check branch June 22, 2021 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 area/CI Impacts the testing / continuous integration testing of the project. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants