buildbuddy-io / buildbuddy

BuildBuddy is an open source Bazel build event viewer, result store, remote cache, and remote build execution platform.

Home Page:https://buildbuddy.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BuildBuddy GitHub app: Container has a version of `ar` without `--output=` flag

ivucica opened this issue · comments

To unpack a .deb package and access header and library files inside, I have some custom rules that use ar to unpack the .deb, then tar xfz to unpack the contents of the archive.

Unfortunately, ar in the default container seems to be either too old or nonstandard: the version in GNU binutils that I have locally on multiple machines (and which seems to work fine unpacking files to provide them into RBE) seems to work perfectly fine.

Should ar / binutils be upgraded?

Hey @ivucica! Does specifying the container_image: ubuntu-20.04 option in your buildbuddy.yaml help?
Ex: https://github.com/buildbuddy-io/buildbuddy/blob/master/buildbuddy.yaml#L46

Indeed, that works as well! I'll keep the approach of setting the CWD instead, since it has its own elegance, but yes, 20.04 has the newer ar. Sorry for the noise!