Skip to content

Conversation

Shrews
Copy link
Contributor

@Shrews Shrews commented May 28, 2025

*** WIP ***

Since we removed the use of an outdated Python requirements parsing library and move to accepting requirements following the PEP508 standard, a bad requirement is no longer silently ignored and passed to pip, which should error. However, a user may wish to catch the warning/error earlier in the introspect phase (or via the CLI command).

This change adds a new --warning-is-error option on the introspect command. It can be passed as a build arg (INTROSPECT_OPTS) in the EE to allow the user to turn all introspect warnings on non-PEP508 compliant entries (even those that may be valid when passed along to pip) into errors.

@Shrews Shrews force-pushed the introspect-error branch from 1255168 to 059e687 Compare May 28, 2025 19:53
@Shrews Shrews added needs_triage New item that needs to be triaged and removed needs_triage New item that needs to be triaged labels May 29, 2025
@Shrews Shrews force-pushed the introspect-error branch from 059e687 to bfba850 Compare June 2, 2025 18:47
@Shrews Shrews force-pushed the introspect-error branch from bfba850 to fd198ef Compare June 2, 2025 19:02
Copy link

sonarqubecloud bot commented Jun 2, 2025

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