ignore

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EphemeralPathMatcher = initEphemeralPathMatcher()

Filter 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(m repoTarget) model.PathMatcher

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

func CreateFileChangeFilter

func CreateFileChangeFilter(m IgnorableTarget) (model.PathMatcher, error)

Filter out files that should not trigger new builds.

func IgnoresToMatcher added in v0.19.2

func IgnoresToMatcher(ignores []v1alpha1.IgnoreDef) (model.PathMatcher, error)

Interpret the FileWatch Ignores as a path matcher.

func TargetToFileWatchIgnores added in v0.19.2

func TargetToFileWatchIgnores(t IgnorableTarget) (ignores []v1alpha1.IgnoreDef)

Pull the FileWatch Ignores out of the old manifest target data model.

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)

type IgnorableTarget added in v0.5.1

type IgnorableTarget interface {
	LocalRepos() []model.LocalGitRepo
	Dockerignores() []model.Dockerignore

	// These directories and their children will not trigger file change events
	IgnoredLocalDirectories() []string
}

Jump to

Keyboard shortcuts

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