wspace

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

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

Go to latest
Published: Feb 24, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package wspace provides a method to find the root of the bazel tree.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

func Find(dir string) (string, error)

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

func FindRepoBuildFiles

func FindRepoBuildFiles(root string) (map[string]string, error)

FindRepoBuildFiles parses the WORKSPACE to find BUILD files for non-Bazel external repositories, specifically those defined by one of these rules:

new_local_repository(), new_git_repository(), new_http_archive()

func FindWorkspaceRoot

func FindWorkspaceRoot(rootDir string) (root string, rest string)

FindWorkspaceRoot splits the current code context (the rootDir if present, the working directory if not.) It returns the path of the directory containing the WORKSPACE file, and the rest.

Types

This section is empty.

Jump to

Keyboard shortcuts

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