bazel-lib icon indicating copy to clipboard operation
bazel-lib copied to clipboard

[FR]: Allow diff_test to specify diff toolchain

Open malt3 opened this issue 2 years ago • 6 comments

What is the current behavior?

Currently, rules like diff_test (and rules that use it, including write_source_files) expect diff to be in the PATH. This fails on NixOS (and platforms where diff is not preinstalled).

Describe the feature

Provide a method to specify the diff binary (via toolchain or label).

malt3 avatar Sep 19 '23 17:09 malt3

FWIW, https://uutils.github.io/diffutils/ has an hermetic diffutils binaries, something similar could be done for diff too.

thesayyn avatar May 11 '24 17:05 thesayyn