Closed SvenKratzEasel closed 11 months ago
So from what I've found, pkg_tar
will always produce a flat directory structure. I have no clue why that would be the behavior, but it is.
If you use pkg_files
and then pass that to pkg_tar
you get the correct directory structure...but no runfiles. However, it looks like support for an include_runfiles
parameter for pkg_files
was recently merged, but isn't in the latest release. So hopefully this will be fixed when that change gets a release?
But it definitely feels odd that it's just not possible to create a package out of a py_binary
using rules_pkg
. Feels like I might be missing something?
I pulled in the latest release, it still mangles the runfiles structure. :disappointed:
Duplicate of #579.
When I construct a pkg_tar rule to pull in a py_binary, e.g.
Include_runfiles just dumps all files into the root directory, and doesn't create .runfiles directory for the foo:bar target, so that running bar fails because no runfiles are found.