scope

package
v0.0.0-...-0a43815 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OptsFromArgs

func OptsFromArgs(opts *Opts, args *turbostate.ParsedArgsFromRust) error

OptsFromArgs adds the settings relevant to this package to the given Opts

func ResolvePackages

func ResolvePackages(opts *Opts, repoRoot turbopath.AbsoluteSystemPath, scm scm.SCM, ctx *context.Context, tui cli.Ui, logger hclog.Logger) (util.Set, bool, error)

ResolvePackages translates specified flags to a set of entry point packages for the selected tasks. Returns the selected packages and whether or not the selected packages represents a default "all packages".

Types

type LegacyFilter

type LegacyFilter struct {
	// IncludeDependencies is whether to include pkg.dependencies in execution (defaults to false)
	IncludeDependencies bool
	// SkipDependents is whether to skip dependent impacted consumers in execution (defaults to false)
	SkipDependents bool
	// Entrypoints is a list of package entrypoints
	Entrypoints []string
	// Since is the git ref used to calculate changed packages
	Since string
}

LegacyFilter holds the options in use before the filter syntax. They have their own rules for how they are compiled into filter expressions.

func (*LegacyFilter) AsFilterPatterns

func (l *LegacyFilter) AsFilterPatterns() []string

AsFilterPatterns normalizes legacy selectors to filter syntax

type Opts

type Opts struct {
	LegacyFilter LegacyFilter
	// IgnorePatterns is the list of globs of file paths to ignore from execution scope calculation
	IgnorePatterns []string
	// GlobalDepPatterns is a list of globs to global files whose contents will be included in the global hash calculation
	GlobalDepPatterns []string
	// Patterns are the filter patterns supplied to --filter on the commandline
	FilterPatterns []string

	PackageInferenceRoot turbopath.RelativeSystemPath
}

Opts holds the options for how to select the entrypoint packages for a turbo run

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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