MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / rlocation

Method rlocation

rb/support/generated_note.rb:31–33  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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)

Callers 3

bazel_javaMethod · 0.80
runfiles_pathMethod · 0.80
readCommentedMethod · 0.80

Calls 1

inspectMethod · 0.45

Tested by 2

bazel_javaMethod · 0.64
runfiles_pathMethod · 0.64