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
Traceback (most recent call last):
File "/private/.../bin/external/rules_pycross~/pycross/private/tools/poetry_translator.runfiles/_main/../rules_pycross~/pycross/private/tools/poetry_translator.py", line 281, in <module>
main(parse_flags())
File "/private/.../bin/external/rules_pycross~/pycross/private/tools/poetry_translator.runfiles/_main/../rules_pycross~/pycross/private/tools/poetry_translator.py", line 243, in main
lock_set = translate(args.project_file, args.lock_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/.../bin/external/rules_pycross~/pycross/private/tools/poetry_translator.runfiles/_main/../rules_pycross~/pycross/private/tools/poetry_translator.py", line 125, in translate
pinned_package_specs[pin] = parse_constraint(pin_info["version"])
~~~~~~~~^^^^^^^^^^^
KeyError: 'version'
The text was updated successfully, but these errors were encountered:
I guess this format isn't currently supported. Is there a way to include a version parameter along with the URL to satisfy it?
The translator looks at pyproject.toml to get the set of pinned dependencies - i.e., the roots used in a later step that computes a transitive closure. The actual lock file can contain multiple versions of a single package in some uncommon scenarios, so the translator doesn't look there for the version. But we could make a change to have it defer to the version in the lock file if pyproject.toml doesn't provide one and poetry.lock only has a single version, which I think would handle most scenarios.
poetry lock
is successfulHowever lock generation failed
The text was updated successfully, but these errors were encountered: