-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
source does not support the use of html as the source entry #7631
Comments
because poetry/src/poetry/repositories/link_sources/html.py Lines 60 to 61 in 40061f9
if you want to submit an MR then that's the bit that needs to change |
The solution would be something like: if not (url.endswith("/") or url.endswith('html')):
url += "/" If anyone already have submitted anything untill tonigh, I'll purpose a PR with the changes and understand how could the tests be modify to attest this behavior. |
Duplicate #6687. |
My bad, I had the wrong issue on the clipboard when closing. #6885 is what I meant to link/I thought I pasted; unless I'm mistaken, this is a clear duplicate of that issue. |
ah yes, that does look duplicate. gosh that's a lot of talk for an issue which I expect should be solved by removing two lines of code. Perhaps I should read through it and understand why I'm wrong... |
The discussion mostly centers around how we should detect a file terminating a URL, as simply removing the appending of a trailing slash is likely to break existing users. I guess the other way to look at it is that they likely should not have depended on such a feature, and a one-time break is an improvement. In any case, feel free to weigh in there. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Feature Request
source does not support the use of html as the source entry, the spliced file address is wrong!
The correct URL should be https://modelscope.oss-cn-beijing.aliyuncs.com/releases/v1.3/modelscope-1.3.1-py3-none-any.whl
➜ poetry lock Updating dependencies Resolving dependencies... (2.6s) 404 Client Error: Not Found for url: https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html/v1.3/modelscope-1.3.1-py3-none-any.whl
The text was updated successfully, but these errors were encountered: