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

pgk_tar: package_dir = "./" attribute is not applied to pkg_mkdir #908

Open
ylecornec opened this issue Jan 8, 2025 · 0 comments
Open

Comments

@ylecornec
Copy link

This is issue is similar to #610 but concerns pkg_mkdir instead of pkg_mklink.

How to reproduce

load("@rules_pkg//:pkg.bzl", "pkg_tar")
load("@rules_pkg//:mappings.bzl", "pkg_mkdirs", "pkg_files")

pkg_files(
    name = "myfile_pkg",
    srcs = ["myfile"],
)

pkg_mkdirs(
    name = "mydir",
    dirs = ["mydir"],
)

pkg_tar(
    name = "myarchive",
    srcs = ["myfile_pkg", "mydir"],
    package_dir = "."
)

invoking

bazel build myarchive.tar
tar tf bazel-bin/myarchive.tar

returns:

mydir/
./myfile

and not:

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

No branches or pull requests

1 participant