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

snapshotter: Fixes go.sum false positive alert for protobuf def #931

Merged
merged 1 commit into from
May 16, 2022

Conversation

jaxesn
Copy link
Member

@jaxesn jaxesn commented May 12, 2022

The previous PR which fixes this did not actually remove the bad version
from the go.sum file.

Funny story, go.sum is not really a list of
deps included in the actually binary, its more of a manifest that go
used to walk the dep tree. Dependabot will sometimes improperly use this
as the source of truth which is not 100% correct. I am not 100% sure
if that is what is happening here, but it def could be because the final
binary is only including 1.3.2 of protobuf.

The reason this wasnt cleaned up is that go 1.15's go mod tidy does
not do as good of job of cleaning up the go.sum as 1.16. I have modified
my patching scripts to delete the go.sum along with the vendor dir and regenerate
it instead.

ref: dependabot/dependabot-core#4740

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

The previous PR which fixes this did not actually remove the bad version
from the go.sum file.

Funny story, go.sum is not really a list of
deps included in the actually binary, its more of a manifest that go
used to walk the dep tree. Dependabot will sometimes improperly use this
as the source of truth which is not 100% correct. I am not 100% sure
if that is what is happening here, but it def could be because the final
binary is only including 1.3.2 of protobuf.

The reason this wasnt cleaned up is that go 1.15's `go mod tidy` does
not do as good of job of cleaning up the go.sum as 1.16.  I have modified
my patching scripts to delete the go.sum along with the vendor dir and regenerate
it instead.

ref: dependabot/dependabot-core#4740
Copy link
Member

@drewvanstone drewvanstone left a comment

Choose a reason for hiding this comment

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

LGTM

@eks-distro-bot
Copy link
Collaborator

@drewvanstone: changing LGTM is restricted to collaborators

In response to this:

LGTM

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@kschumy
Copy link

kschumy commented May 16, 2022

/retest

@kschumy
Copy link

kschumy commented May 16, 2022

/lgtm

@jaxesn
Copy link
Member Author

jaxesn commented May 16, 2022

/approve

@eks-distro-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jaxesn

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jaxesn jaxesn merged commit 0eec2d4 into aws:main May 16, 2022
@jeffwidman
Copy link

BTW, GitHub fixed it so go.sum is no longer used as a source of dependencies: https://github.blog/changelog/2023-03-07-dependency-graph-removes-go-sum-support/

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.

5 participants