bazelbuild / bazelbuild/rules_pkg
pkg_tar.strip_prefix does not work for srcs from other packages.
Open
P3
- Dominant language
- Starlark
- Stars
- 253
- Forks
- 221
- Avg merge
- 10h 33m
- Merged PRs (30d)
- 1
Description
```
# foo/BUILD
exports_files(glob(["testdata/**"]))
```
```
# my/BUILD
pkg_tar(
name = 'sample',
srcs = ['//a:testdata/foo'],
strip_prefix = "a/testdata",
)
```
You end up with a/testdata/foo in the archive.
The solution may be to just document this as a deficiency and tell users to use pkg_files.
Contributor guide
Assessment
This issue has not been assessed yet.