bazelrunfiles

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package bazelrunfiles helps read runtime data files for programs built using Bazel.

This library uses "github.com/bazelbuild/rules_go/go/tools/bazel" with some extra usability features.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Runfile

func Runfile(filePath string) (string, error)

Runfile returns an absolute path to the file named by "path", which should be a relative path from the workspace root to the file within the bazel workspace.

Runfile may be called from tests invoked with 'bazel test' and binaries invoked with 'bazel run'. On Windows, only tests invoked with 'bazel test' are supported.

Types

This section is empty.

Jump to

Keyboard shortcuts

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