ignore

package
v0.33.14 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EphemeralPathMatcher = initEphemeralPathMatcher()

EphemeralPathMatcher filters out spurious changes that we don't want to rebuild on, like IDE temp/lock files.

This isn't an ideal solution. In an ideal world, the user would put everything to ignore in their tiltignore/dockerignore files. This is a stop-gap so they don't have a terrible experience if those files aren't there or aren't in the right places.

https://app.clubhouse.io/windmill/story/691/filter-out-ephemeral-file-changes

Functions

func CreateBuildContextFilter

func CreateBuildContextFilter(ignores []v1alpha1.IgnoreDef) model.PathMatcher

Filter out files that should not be included in the build context.

func CreateFileChangeFilter

func CreateFileChangeFilter(ignores []v1alpha1.IgnoreDef) model.PathMatcher

Filter out files that should not trigger new builds.

func ToMatchersBestEffort added in v0.27.3

func ToMatchersBestEffort(ignores []v1alpha1.IgnoreDef) []model.PathMatcher

Interpret ignores as a PathMatcher, skipping ignores that are ill-formed.

Types

type DirectoryMatcher added in v0.18.12

type DirectoryMatcher struct {
	// contains filtered or unexported fields
}

func NewDirectoryMatcher added in v0.18.12

func NewDirectoryMatcher(dir string) (DirectoryMatcher, error)

func (DirectoryMatcher) Dir added in v0.18.12

func (d DirectoryMatcher) Dir() string

func (DirectoryMatcher) Matches added in v0.18.12

func (d DirectoryMatcher) Matches(p string) (bool, error)

func (DirectoryMatcher) MatchesEntireDir added in v0.18.12

func (d DirectoryMatcher) MatchesEntireDir(p string) (bool, error)

Jump to

Keyboard shortcuts

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