bazelbuild / bazelbuild/rules_pkg

pkg_tar with "include_runfiles = True" includes _main/app.exe in tarfile (exe is included twice)

Open
#1,037 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Starlark
Stars
253
Forks
221
Avg merge
10h 33m
Merged PRs (30d)
1

Description

I have the following pkt_tar in BUILD.bazel

```
pkg_tar(
name = "tarfile",
srcs = [
":openroad",
],
include_runfiles = True,
package_file_name = "openroad.tar",
)
```

The generated tarfile contains the binary "openroad" at root (as expected) plus the binary again at openroad.runfiles/_main/openroad.

The tarfile should only contain the binary at the root level.

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.