rules_cc runfiles library does not provide BAZEL_CURRENT_REPOSITORY
#285
Labels
P3
Accepted issue. Team is likely to fix this issue in the future, but no short-term promises are made.
Description of the problem / feature request:
The runfiles library has been deprecated in bazel-tools and now points to the library in rules_cc, but the instructions ported over refer to BAZEL_CURRENT_REPOSITORY, which is not present in the rules_cc runfiles library.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
I made a branch off something I was working on. You should be able to run
touch data/inputs/01.txt && bazel build //src/day/01
using //https://github.com/flurie/aoc-2024/tree/demo-rules-cc-runfiles if you install the prereqs (nix and devenv) and it should work on macOS and Linux.What operating system are you running Bazel on?
macOS 14.5
What's the output of
bazel info release
?release 7.4.1- (@non-git)
If
bazel info release
returns "development version" or "(@non-git)", tell us how you built Bazel.It is built from nixpkgs 24.11.
What version of rules_cc do you use? Can you paste the workspace rule used to fetch rules_cc? What other relevant dependencies does your project have?
What Bazel options do you use to trigger the issue? What C++ toolchain do you use?
.bazelrc:
for completeness, the output when the repro command is run with
--announce_rc
:toolchain:
Have you found anything relevant by searching the web?
No
Any other information, logs, or outputs that you want to share?
No
The text was updated successfully, but these errors were encountered: