Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Services ¶
Services builds the given services, aggregating them by repo root to efficiently build subdirs.
func WithStrategy ¶
Types ¶
type Builder ¶
type Builder interface {
// Root gives the root directory the builder targets.
Root() string
// BuildAll builds the whole repo
BuildAll(context.Context, Options) error
// ValidateSubdirs checks which subdirs are valid to pass to BuildDirs. It
// should return _relative_ paths.
ValidSubdirs(context.Context) ([]string, error)
// BuildDirs builds the specified subdirs. It should expect relative paths,
// tolerating both presence and absence of a leading `./` or the
// platform-specific equivalent. It may return an error if any of the dirs is
// not in what ValidSubdirs would return. It may also do a sensible build if
// it can infer a sensible one, e.g. building the nearest parent dir.
BuildDirs(ctx context.Context, dirs []string, opts Options) error
}
Builder represents a tool that can build a repo, or a set of subdirs within the repo.
func TryStrategy ¶
Click to show internal directories.
Click to hide internal directories.