wspace

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package wspace provides functions to locate and modify a bazel WORKSPACE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindRepoRoot added in v0.21.0

func FindRepoRoot(dir string) (string, error)

FindRepoRoot searches from the given dir and up for a directory containing a WORKSPACE file returning the directory containing it, or an error if none found in the tree.

func FindWORKSPACEFile added in v0.21.0

func FindWORKSPACEFile(root string) string

FindWORKSPACEFile returns a path to a file in the provided root directory, either to an existing WORKSPACE or WORKSPACE.bazel file, or to root/WORKSPACE if neither exists. Note that this function does NOT recursively check parent directories.

func IsWORKSPACE added in v0.21.0

func IsWORKSPACE(path string) bool

IsWORKSPACE checks whether path is a WORKSPACE or WORKSPACE.bazel file

Types

This section is empty.

Jump to

Keyboard shortcuts

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