Documentation genrule example - maybe avoid $(location ..) or $(locations ..) #15078
Labels
help wanted
Someone outside the Bazel team could own this
P3
We're not considering working on this, but happy to review a PR. (No assignee)
team-Documentation
Documentation improvements that cannot be directly linked to other team labels
team-Rules-Server
Issues for serverside rules included with Bazel
type: documentation (cleanup)
Description of the problem / feature request:
https://docs.bazel.build/versions/main/be/general.html#genrule_examples
Elsewhere I've seen that we're not supposed to be using$(location) calls and should instead be using $ (rootpath ..) or $(execpath ..)
#2475 (comment)
I just spent hours debugging why a genrule of mine didn't work, when it wasn't exactly clear from the example that
Maybe this is clear for people who've been in Bazel for years and are aware of the changes to all make-style vars.
The text was updated successfully, but these errors were encountered: