bazelbuild / rules_pkg

Bazel rules for creating packages of many types (zip, tar, deb, rpm, ...)
Apache License 2.0
216 stars 174 forks source link

pkg_tar nonfunctional with py_library #703

Closed tsr-boxbot closed 11 months ago

tsr-boxbot commented 1 year ago

I have a py_library setup and when I used pkg_tar I get an empty tar as output:

py_library(
    name = 'x_pylib',
    data = [
        ':x_py.so'
    ],
    imports=['.'],
    visibility = ["//visibility:public"],
)

pkg_tar(                                                                                                                                                     
    name = "x-pkg",                                                                                                                                   
    srcs = [                                                                                                                                                 
        "//x-pylib"                                                                                                               
    ],
    package_file_name = "x-amd64-debug.tar",
)
aiuto commented 1 year ago

This looks like another instance of runfiles not being supported correctly. So this is a duplicate of other bugs, but it's too late at night for me to bother looking up which one. I'll do that when I next do triage.

aiuto commented 11 months ago

Dup of #153