Resolves a Bazel rlocation key to a real path. Fail loud: a generator has no non-Bazel fallback, and rlocation returns nil when not running under a runfiles tree.
(key)
| 29 | # Resolves a Bazel rlocation key to a real path. Fail loud: a generator has no non-Bazel |
| 30 | # fallback, and rlocation returns nil when not running under a runfiles tree. |
| 31 | def self.rlocation(key) |
| 32 | runfiles.rlocation(key) || raise("Could not resolve runfile #{key.inspect}") |
| 33 | end |
| 34 | |
| 35 | # Renders the standard two-line generated-file marker in the given comment style. |
| 36 | def self.render(comment_prefix, generator, command) |