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

Fixes for the cases that raise Tracebacks in outdated pip version check #5764

Merged
merged 2 commits into from
Sep 7, 2018

Conversation

pradyunsg
Copy link
Member

@pradyunsg pradyunsg commented Sep 5, 2018

Fixes #5679. The selfcheck.json file is stored in the cache. If the cache is disabled, this file can not be accessed and so pip shouldn't cache the version in that case.

Fixes #5433 (and closes #5680). Instead of performing the version check for every command, only perform the check with commands have the required (index) options.

@pradyunsg pradyunsg added this to the 18.1 milestone Sep 5, 2018
@pradyunsg pradyunsg self-assigned this Sep 5, 2018
@pradyunsg pradyunsg force-pushed the bugfix/errors-in-outdated-check branch from c838698 to 9019ed5 Compare September 5, 2018 07:43
@dstufft
Copy link
Member

dstufft commented Sep 5, 2018

Any reason to just not cache the check, but otherwise still perform it when the cache is disabled?

@pradyunsg
Copy link
Member Author

Ah. Oversight. :)

I'll see what to do for that. #5680 should be close enough in that case.

@pradyunsg pradyunsg force-pushed the bugfix/errors-in-outdated-check branch from 9019ed5 to 692929e Compare September 5, 2018 18:40
@pradyunsg pradyunsg changed the title Do not perform version check if cache directory is disabled Fixes for the cases that raise Tracebacks in outdated pip version check Sep 5, 2018
@pradyunsg pradyunsg force-pushed the bugfix/errors-in-outdated-check branch from 692929e to 1e0247f Compare September 5, 2018 19:14
@pradyunsg
Copy link
Member Author

Updated the description according to the updated PR. Fixes all the same issues as before.

@pradyunsg
Copy link
Member Author

pradyunsg commented Sep 7, 2018

CI passes and I am happy with these changes. I'll go ahead and merge this.

@pradyunsg pradyunsg merged commit 1e1ff21 into pypa:master Sep 7, 2018
@pradyunsg pradyunsg deleted the bugfix/errors-in-outdated-check branch September 7, 2018 03:43
@nehaljwani
Copy link
Contributor

When is the next release due? This is the only issue blocking my team to upgrade pip to 18.x

@benoit-pierre
Copy link
Member

@nehaljwani: soon: #5782.

@lock
Copy link

lock bot commented Jun 1, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 1, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
4 participants