Skip to content

py_binary and oci_image don't play nice when mediated via pkg_tar #803

@bcsgh

Description

@bcsgh

I don't know that this is a bug, of who's bug it is, but this seems like a good place to start trying to make thins better. (Feel free to point me at someone else.)

tl;dr; when pkg_tar is wrapped in the most obvious way around a py_binary so that it can be stuffed in an oci_image, files from the local workspace end up in a different location than the wrapper script that py_binary generates expect them to be in. (Non local files might as well, but things started working for me before I ever observed that.) I make no claim to it being correct, but the following commit seems to resolve the problem by inserting the workspace_name into the a suitable spot in the paths that will used in the tar.

bcsgh@8adcd2a

I expect that would be a breaking change for more than a few users. But then again, the existing behavior is wacky enough that it's possible that nobody has anything that works depending on it. (Or maybe not.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2An issue that should be worked on when time is availableneed more information

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions