getpath

package
v0.0.0-...-912d621 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2022 License: MPL-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPath

func GetPath(filename string) string

GetPath returns the path to the file, which will be correct even when run from Bazel.

func GetTool

func GetTool(filename string) string

GetTool returns the pat to a tool. The tool must be listed in the data dependencies for the running executable, and the filename should be the package and target name. This will work with "bazel run", genrules, and Starlark actions.

See: https://docs.bazel.build/versions/master/skylark/rules.html#runfiles

func Relative

func Relative(base, target string) string

Relative returns the relative path from base to target, if target is a descendant of base. Otherwise, returns the empty string.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL