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

Change DefaultRequirement in go_modules #11421

Closed
wants to merge 1 commit into from

Conversation

ByAgenT
Copy link
Contributor

@ByAgenT ByAgenT commented Jan 27, 2025

What are you trying to accomplish?

Fixes #11420 by changing DefaultRequirement to DefaultPrereleaseRequirement.

Anything you want to highlight for special attention from reviewers?

This seems like the most straightforward way to fix the problem where security updates incorrectly states that updates for versions v0.0.0 are not needed.

How will you know you've accomplished your goal?

Security updates should start succeed for go modules where vulnerable packages are versioned like v0.0.0-xxxx.

Checklist

  • I have run the complete test suite to ensure all tests and linters pass.
  • I have thoroughly tested my code changes to ensure they work as expected, including adding additional tests for new functionality.
  • I have written clear and descriptive commit messages.
  • I have provided a detailed description of the changes in the pull request, including the problem it addresses, how it fixes the problem, and any relevant details about the implementation.
  • I have ensured that the code is well-documented and easy to understand.

@github-actions github-actions bot added the L: go:modules Golang modules label Jan 27, 2025
@ByAgenT
Copy link
Contributor Author

ByAgenT commented Jan 28, 2025

Disregarding this PR, as this change does not conform semver. Looks like the root problem of the issue are incorrect versions constraints in the advisories itself.

@ByAgenT ByAgenT closed this Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: go:modules Golang modules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Go modules with version v0.0.0-xxx incorrectly marked by go_updater as not vulnerable in security updates
1 participant