-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Don't check against root directory #4275
Conversation
The main reason for the change in the first place is due to locating virtual environments & related python paths -- as far as I was aware, this was a substantial cause of bugs and breakages and basically didn't work. The fact that it is breaking workflows is the first I am hearing of it working at all. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small update to how we are determining extra index url defaults -- our syntax here is kind of outdated
I think the changes make sense overall -- my only question is -- wasn't one of our main issues regarding the |
Agree, do as suggested
Yes, when under the root directory Lines 220 to 224 in 3f4abad
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is ok with me, unless you want to try some alternative approach for the cache dir removal... but it's less important to clean up pip's cache anyhow
pipenv/core.py
Outdated
except OSError as e: | ||
# Ignore FileNotFoundError. This is needed for Python 2.7. | ||
import errno | ||
|
||
if e.errno == errno.ENOENT: | ||
pass | ||
raise | ||
# Other processes may be writing into this directory simultaneously. | ||
vistir.path.rmtree(locations.USER_CACHE_DIR, ignore_errors=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah i guess that's fine, or maybe ignore_errors=environments.PIPENV_IS_CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(but I'm not sure that's necessary, and don't delay merging over it)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't know that env var, that looks better.
The issue
#3386 causes some regression issue #4273
The fix
This PR reverts some of the changes of #3386, don't check against root directory but fix the
self.name
reference increate_pipfile()
.Sorry for the trouble.
The checklist
news/
directory to describe this fix with the extension.bugfix
,.feature
,.behavior
,.doc
..vendor
. or.trivial
(this will appear in the release changelog). Use semantic line breaks and name the file after the issue number or the PR #.