Skip to content

poetry_requirement defined by relative path generates a lockfile with absolute path #21287

Open
@jasondamour

Description

@jasondamour

Describe the bug
pyproject.toml:

[tool.poetry.dependencies]
snorkel = {path="./ext/dist/snorkel-0.9.9-py3-none-any.whl"}

BUILD:

poetry_requirements(name="poetry", resolve="x")

pants.lock:

// This lockfile was autogenerated by Pants. To regenerate, run:
//
//    pants generate-lockfiles --resolve=x
//
// --- BEGIN PANTS LOCKFILE METADATA: DO NOT EDIT OR REMOVE ---
// {
//   "version": 3,
//   "valid_for_interpreter_constraints": [
//     "CPython==3.10.6"
//   ],
//   "generated_with_requirements": [
//     "snorkel@ file:///Users/jasondamour/Workspace/x/x/x/x/x/ext/dist/snorkel-0.9.9-py3-none-any.whl",
// }
// --- END PANTS LOCKFILE METADATA ---

Pants version
Which version of Pants are you using?
2.21

OS
Generate lock on macos

Additional info
This lockfile is not valid on machine besides the lockfile generator host.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions