package bazel

import "github.com/irfansharif/solver/internal/testutils/bazel"

Index

Functions

func BuiltWithBazel

func BuiltWithBazel() bool

BuiltWithBazel returns true iff this library was built with Bazel.

func ScratchDirectory

func ScratchDirectory(t *testing.T) string

ScratchDirectory returns the path of the scratch directory in the bazel sandbox.

func WorkspacePath

func WorkspacePath(t *testing.T) string

WorkspacePath returns the path of the bazel workspace.

func WritableSandboxPathFor

func WritableSandboxPathFor(t *testing.T, pkg, path string) (writable string, implant func())

WritableSandboxPathFor returns a writable path for a given path in the source tree. It also returns a callback to copy over the contents of the writable path back into the source tree (`--sandbox_writable_path` is expected to have been declared over it).

Source Files

non_bazel.go

Version
v0.0.0-20220713194315-9c33ad307075 (latest)
Published
Jul 13, 2022
Platform
linux/amd64
Imports
1 packages
Last checked
3 weeks ago

Tools for package owners.