treeset

package
v0.0.67 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0, NCSA Imports: 6 Imported by: 0

Documentation

Overview

Package treeset provides functions for extracting targets that use bazel treesets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandDirectories

func ExpandDirectories(ctx context.Context, paths []string) []string

ExpandDirectories returns the list of files contained in the provided paths.

Paths can be individual files or directories. If it's a directory - all files within that directory added to the result.

func FindMissingTreeInputs

func FindMissingTreeInputs(inputs []string, requiredFiles stringset.Set) []string

FindMissingTreeInputs returns the required files that are not explicitly listed in bazel's inputs because they were tree artifacts.

Some bazel rules use tree artifacts for the inputs to the compiler. These are directories that Bazel expands to files when the action is run. Consequently, the list of inputs that Bazel has only contains the tree artifact directory. This function reports the files that are (1) required, (2) not included in bazel's inputs, and (3) have their parent directory included in Bazel's inputs.

func ListSources

func ListSources(ctx context.Context, arg string) (stringset.Set, error)

ListSources returns the source files underneath path. If path is a file, it returns a set with a single element. If path is a directory, it returns a set containing all the files (recursively) under path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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