-
Notifications
You must be signed in to change notification settings - Fork 209
Description
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.
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.)