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

pip config unset requires --user #8788

Closed
akaihola opened this issue Aug 19, 2020 · 1 comment
Closed

pip config unset requires --user #8788

akaihola opened this issue Aug 19, 2020 · 1 comment
Labels
C: configuration Configuration management and loading

Comments

@akaihola
Copy link
Contributor

akaihola commented Aug 19, 2020

If you modify configuration using e.g.

pip config set global.use-feature 2020-resolver

it isn't possible to disable the resolver simply using

pip config unset global.use-feature

Instead, you'll need

pip config unset --user global.use-feature

I see this behavior on Fedora 30, Python 3.7 and pip 20.2.

After running pip config set global.use-feature 2020-resolver, the pip config debug command shows

env_var:
env:
global:
  /etc/xdg/pip/pip.conf, exists: False
  /etc/pip.conf, exists: False
site:
  /usr/pip.conf, exists: False
user:
  /home/akaihola/.pip/pip.conf, exists: False
  /home/akaihola/.config/pip/pip.conf, exists: True

Originally posted by @akaihola in #8661 (comment)

@akaihola akaihola changed the title config unset requires --user pip config unset requires --user Aug 19, 2020
@pradyunsg pradyunsg added S: needs triage Issues/PRs that need to be triaged C: configuration Configuration management and loading state: needs eyes Needs a maintainer/triager to take a closer look labels Aug 30, 2020
@pradyunsg
Copy link
Member

❯ pip config set global.use-feature 2020-resolver
Writing to /Users/pradyunsg/.config/pip/pip.conf
❯ pip config unset global.use-feature
WARNING: --use-feature=2020-resolver no longer has any effect, since it is now the default dependency resolver in pip. This will become an error in pip 21.0.
Writing to /Users/pradyunsg/.config/pip/pip.conf

This now works as expected (current main, and I imagine the last release as well).

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 7, 2022
@pradyunsg pradyunsg removed the state: needs eyes Needs a maintainer/triager to take a closer look label Dec 9, 2022
@pradyunsg pradyunsg removed the S: needs triage Issues/PRs that need to be triaged label Mar 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C: configuration Configuration management and loading
Projects
None yet
Development

No branches or pull requests

2 participants