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

pep440: log the invalid version string #530

Merged
merged 1 commit into from
Dec 6, 2021

Conversation

crozzy
Copy link
Contributor

@crozzy crozzy commented Dec 6, 2021

When debugging it would be nice to see the strings that are
choking during the version parsing to be able to add them to
regressions.

Signed-off-by: crozzy joseph.crosland@gmail.com

@crozzy
Copy link
Contributor Author

crozzy commented Dec 6, 2021

quay.io/crozzy/test-py:bad-version2 Test image

@crozzy crozzy force-pushed the crozzy-python-version-changes branch 4 times, most recently from 8b314ba to 6762103 Compare December 6, 2021 20:04
@crozzy crozzy marked this pull request as ready for review December 6, 2021 20:16
@crozzy crozzy requested a review from a team as a code owner December 6, 2021 20:16
@crozzy crozzy requested review from hdonnay and removed request for a team December 6, 2021 20:16
hdonnay
hdonnay previously approved these changes Dec 6, 2021
Copy link
Member

@hdonnay hdonnay left a comment

Choose a reason for hiding this comment

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

LGTM

I'd reformat the error string, but that's not a blocker.

pkg/pep440/version.go Outdated Show resolved Hide resolved
We observed that the python scanner can cause the
indexing to fail due to a bad version being passed.
This PR logs the bad version and moves on to other
potential packages. We assume the offending package
is un-addressable.

Signed-off-by: crozzy <joseph.crosland@gmail.com>
@crozzy crozzy force-pushed the crozzy-python-version-changes branch from 1dca7d5 to 9a02070 Compare December 6, 2021 22:00
@crozzy crozzy merged commit 781e346 into quay:main Dec 6, 2021
@crozzy crozzy deleted the crozzy-python-version-changes branch December 6, 2021 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants