You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For an index at e.g. /main/pypa/simple/ and a package URL /main/pypa/simple/numpy/, the relative wheel file URL is made absolute to /, not to /main/pypa/simple/numpy/. This goes against HTML redirects and thus seems to go against the spec, which states (for the simple JSON spec which builds on the HTML spec) "If relative, they are relative to the current URL as if it were HTML."
Is there a specific index that relies on this broken redirect?
I will propose a PR to fix this.
The text was updated successfully, but these errors were encountered:
#150 (cc @Carreau) introduced support for relative index URLs. Unfortunately, the transformation from relative to absolute is broken:
micropip/micropip/package_index.py
Line 327 in d0d2e7a
For an index at e.g. /main/pypa/simple/ and a package URL /main/pypa/simple/numpy/, the relative wheel file URL is made absolute to /, not to /main/pypa/simple/numpy/. This goes against HTML redirects and thus seems to go against the spec, which states (for the simple JSON spec which builds on the HTML spec) "If relative, they are relative to the current URL as if it were HTML."
Is there a specific index that relies on this broken redirect?
I will propose a PR to fix this.
The text was updated successfully, but these errors were encountered: