rmohr / bazeldnf

Build multi-arch base containers based on RPM with bazel.
Apache License 2.0
30 stars 18 forks source link

mark bazeldnf as pure go binary #48

Closed malt3 closed 1 year ago

malt3 commented 1 year ago

Resolves #45

From @fmeum on Slack with regards to using bazeldnf as a provider for cross compiler toolchain sysroots:

The Bazel DNF tool appears to be a Go tool. By default, on supported platforms, Go tools use a standard library built with a C compiler (cgo), which causes the cyclic dependency on the C++ toolchain. If @bazeldnf//cmd:cmd set pure = True on the go_binary rule, that may resolve this cyclic dependency.

While this issue is also fixed by shipping pre-compiled binaries, marking the binary as pure should be generally preferred since it has less dependencies on the host system (libc).

TODO