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

Make the root warning silence flag multi-state #11035

Merged
merged 1 commit into from
Apr 14, 2022

Conversation

uranusjr
Copy link
Member

Instead of a flag, make the option take an argument like this:

--root-user-action=ignore

This allows us to add more alternatives in the future, for example to emit a hard error when a root user is detected. This makes #7802 a bit easier to transition.

Also re-label the news fragment to point to the issue instead of the PR that introduced the option.

Tentitively putting this into 21.1; this has not been released, so if we change it before 23.1 we can avoid any compatibility issues. After the release it’d be more difficult.

ref #10556 #10990
cc @potiuk

Instead of a flag, make the option take an argument like this:

    --root-user-action=ignore

This allows us to add more alternatives in the future, for example to
emit a hard error when a root user is detected.

Also re-label the news fragment to point to the issue instead of the PR
that introduced the option.
@uranusjr uranusjr added this to the 22.1 milestone Apr 14, 2022
Copy link
Contributor

@potiuk potiuk left a comment

Choose a reason for hiding this comment

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

Cool. that's even better than my proposal :)

@pradyunsg pradyunsg merged commit 2e1112a into pypa:main Apr 14, 2022
@uranusjr uranusjr deleted the pip-root-tristate branch April 14, 2022 19:00
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants