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: couple of related problems with exhortignore in go.mod #56

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

zvigrinberg
Copy link
Collaborator

Description

fix: exhortignored not respected for couple of edge cases regex that should capture all cases of packages names + versions in go.mod

fix: in case of automatic version bump, the exhortignored package wrongly shown as a direct dependency in generated sbom

fix: filter the exhortignored packages after sbom creation instead of during creation

test: add new test that all direct dependencies are ignored, and update existing tests expected sbom

Related issue

fixes https://issues.redhat.com/browse/TC-573

Checklist

  • I have followed this repository's contributing guidelines.
  • I will adhere to the project's code of conduct.

Additional information

Anything else?

…regex that should capture all cases of packages names + versions in go.mod

fix: in case of automatic version bump, the exhortignored package wrongly shown as a direct dependency in generated sbom
fix: filter the exhortignored packages after sbom creation instead of during creation
test: add new test that all direct dependencies are ignored, and update existing tests expected sbom

Signed-off-by: Zvi Grinberg <[email protected]>
@zvigrinberg zvigrinberg merged commit bd3467e into main Sep 20, 2023
@zvigrinberg zvigrinberg deleted the fix-golang-exhortignore branch September 20, 2023 21:17
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.

1 participant