Skip to content

pip-tools 7.5.0 strips a slash from constraint URLs #2223

@timmc-edx

Description

@timmc-edx

After upgrading from pip-tools 7.4.1 to 7.5.0, pip-compile outputs URLs in "via" lines with a slash missing.

Environment Versions

  1. Linux
  2. Python version: 3.12.3
  3. pip version: 24.0
  4. pip-tools version: 7.5.0

Steps to replicate

Create file demo.in, referencing an HTTPS constraint URL that constrains one of the dependencies:

django
-c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt

Run pip-compile -o demo.txt demo.in and observe the via-comments.

Expected result

Constraint URL is preserved intact in comment

Actual result

Constraint URL is missing a slash from the authority delimiter:

...
django==4.2.23
    # via
    #   -c https:/raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
    #   -r demo.in
...

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions