Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg_tar does not include bazel-created __init__.py files #17037

Open
ashuels opened this issue Dec 15, 2022 · 0 comments
Open

pkg_tar does not include bazel-created __init__.py files #17037

ashuels opened this issue Dec 15, 2022 · 0 comments
Labels

Comments

@ashuels
Copy link

ashuels commented Dec 15, 2022

Description of the bug:

When using pkg_tar on a py_binary and specifying include_runfiles=True, the bazel-created __init__.py files are not included in the tar.

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

py_binary(
    name = "foo",
    srcs = ["foo.py"]
)

pkg_tar(
    name = "foo-pkg",
    srcs = [":foo"],
    extension = "tar.gz",
    include_runfiles = True,
    package_dir = "foo.runfiles/__main__",
    strip_prefix = ".",
)

Which operating system are you running Bazel on?

Ubuntu 18.04

What is the output of bazel info release?

release 3.4.1

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD ?

No response

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants