bazelbuild / bazelbuild/rules_pkg

pkg_tar.strip_prefix does not work for srcs from other packages.

Open
#462 0 comments 2 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.