package bazel
import "github.com/irfansharif/solver/internal/testutils/bazel"
Index ¶
- func BuiltWithBazel() bool
- func ScratchDirectory(t *testing.T) string
- func WorkspacePath(t *testing.T) string
- func WritableSandboxPathFor(t *testing.T, pkg, path string) (writable string, implant func())
Functions ¶
func BuiltWithBazel ¶
func BuiltWithBazel() bool
BuiltWithBazel returns true iff this library was built with Bazel.
func ScratchDirectory ¶
ScratchDirectory returns the path of the scratch directory in the bazel sandbox.
func WorkspacePath ¶
WorkspacePath returns the path of the bazel workspace.
func WritableSandboxPathFor ¶
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 ¶
- 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.