Documentation
¶
Overview ¶
Package ws offers functions for locating Bazel workspaces and related files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindFile ¶ added in v1.30.0
FindFile returns the nearest file at relativePath in startDirectory or one of its parent directories. It returns an empty string if no such file exists.
func FindWorkspaceRoot ¶
FindWorkspaceRoot returns the root directory of the Bazel workspace in which root exists, if any. Defined by the presence of a file named MODULE.bazel, REPO.bazel, WORKSPACE.bazel, or WORKSPACE see https://github.com/bazelbuild/bazel/blob/7.2.1/src/main/cpp/workspace_layout.cc#L34
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.