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
{{ message }}
Repository navigation
pip.parse with uv_lock fails when lock file contains git sourced package #4084
pip.parse with uv_lock fails when the lock file contains a package with a git source entry with a rev hash due to ? being not a valid character for names.
ERROR: /Users/steven/Library/Caches/bazel/_bazel_steven/d71d77490eeb3a6c5a6efc45dc1ed897/external/rules_python+/python/private/pypi/whl_library.bzl:817:20: Traceback (most recent call last):
File "/Users/steven/Library/Caches/bazel/_bazel_steven/d71d77490eeb3a6c5a6efc45dc1ed897/external/rules_python+/python/private/pypi/extension.bzl", line 615, column 20, in _pip_impl
whl_library(name = name, **args)
File "/Users/steven/Library/Caches/bazel/_bazel_steven/d71d77490eeb3a6c5a6efc45dc1ed897/external/rules_python+/python/private/pypi/whl_library.bzl", line 817, column 20, in whl_library
pip_archive(name = name, **kwargs)
Error in repository_rule: invalid user-provided repo name 'py_deps_311__mypackage?rev=6323b05075dcb2347279e966a5a3b15b5ddc1d5b#6323b05075dcb2347279e966a5a3b15b5ddc1d5b': valid names may contain only A-Z, a-z, 0-9, '-', '_', '.', and must start with a letter or a number
I’d like to work on this. I’ll keep the full Git URL (including its revision) while deriving a query/fragment-free filename, and add regression coverage for the uv.lock parsing path.
Activity
henriquejsza commentedon Aug 21, 2026
I’d like to work on this. I’ll keep the full Git URL (including its revision) while deriving a query/fragment-free filename, and add regression coverage for the uv.lock parsing path.
fix(pypi): handle revisions in uv.lock Git sources (bazel-contrib#4086)