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

fix: Don't try to parse Links as Paths #4532

Closed

Conversation

serverwentdown
Copy link
Contributor

@serverwentdown serverwentdown commented Sep 21, 2021

Previously, Links and Paths were passed in to pip_install as a
string. This makes it hard for pip_install to parse out the extension of
the file to install. By accepting only Links or Paths, pip_install
can parse out the extension using the Link.

This also resolves a bug when Executor._download_link is in use and returns a Link, which can't be parsed by Path(str(link)) on Windows.

This was overlooked when running on Linux because file:/path/to/cache is somehow a valid pip install path in Python on Linux, but not a valid path on Windows. With this PR, pip install is always called with a proper Path (/path/to/cache) and never a Path-parsed Link (file:/path/to/cache)

Not a bug in 1.1.

Pull Request Check List

Resolves: #issue-number-here

  • Added tests for changed code.
  • Updated documentation for changed code.

Previously, `Link`s and `Path`s were passed in to `pip_install` as a
string. This makes it hard for pip_install to parse out the extension of
the file to install. By accepting only `Link`s or `Path`s, `pip_install`
can parse out the extension using the `Link`.
@serverwentdown serverwentdown mentioned this pull request Oct 9, 2021
2 tasks
@serverwentdown
Copy link
Contributor Author

Superseded by #4531

Copy link

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

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
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.

1 participant