bazel

package
v0.0.0-...-5ddb564 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: BSD-3-Clause Imports: 8 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureBazelRCFile

func EnsureBazelRCFile(ctx context.Context, bazelOpts BazelOptions) error

EnsureBazelRCFile makes sure the user .bazelrc file exists and matches the provided configuration. This makes it easy for all subsequent calls to Bazel use the right command line args, even if Bazel is not invoked directly from task_driver (e.g. from a Makefile).

Types

type Bazel

type Bazel struct {
	// contains filtered or unexported fields
}

Bazel provides a Task Driver API for working with Bazel (via the Bazelisk launcher, see https://github.com/bazelbuild/bazelisk).

func New

func New(ctx context.Context, workspace, rbeCredentialFile string, opts BazelOptions) (*Bazel, error)

New returns a new Bazel instance.

func (*Bazel) Do

func (b *Bazel) Do(ctx context.Context, subCmd string, args ...string) (string, error)

Do executes a Bazel subcommand.

func (*Bazel) DoOnRBE

func (b *Bazel) DoOnRBE(ctx context.Context, subCmd string, args ...string) (string, error)

DoOnRBE executes a Bazel subcommand on RBE.

type BazelOptions

type BazelOptions struct {
	CachePath           string
	RepositoryCachePath string
}

Jump to

Keyboard shortcuts

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