bazelproject

package
v0.1.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	FS            fs.UlspFS
	OutputWriter  io.Writer
	WorkspaceRoot string

	// Paths, relative to the workspace root, which will be checked.
	// Once the first match is found, it will be used.
	Paths []string
}

Params is the configuration for the provider.

type PresetPatternsProvider

type PresetPatternsProvider interface {
	GetPresetPatterns(ctx context.Context, getTargetsFunc func(ctx context.Context, patterns []string) ([]string, error)) ([]string, error)
}

PresetPatternsProvider provides a list of preset target patterns to the registry

func New

New creates a new project view patterns provider.

type ProjectView

type ProjectView struct {
	Path                          string
	Targets, Directories, Imports []string
	DeriveTargets                 bool
}

ProjectView stores information in .bazelproject file.

func ParseProjectView

func ParseProjectView(projectFile io.Reader) (project ProjectView, err error)

ParseProjectView parses a .bazelproject file and its imports with depth-first order. It assumes that the file is a YAML except the imports. More information: https://ij.bazel.build/docs/project-views.html This function parses the file with best effort, so it may return partially valid content with errors indicating the issues it runs into.

Jump to

Keyboard shortcuts

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