MCPcopy Index your code
hub / github.com/go-task/task / NewSourcesChecker

Function NewSourcesChecker

internal/fingerprint/sources.go:5–16  ·  view source on GitHub ↗
(method, tempDir string, dry bool)

Source from the content-addressed store, hash-verified

3import "fmt"
4
5func NewSourcesChecker(method, tempDir string, dry bool) (SourcesCheckable, error) {
6 switch method {
7 case "timestamp":
8 return NewTimestampChecker(tempDir, dry), nil
9 case "checksum":
10 return NewChecksumChecker(tempDir, dry), nil
11 case "none":
12 return NoneChecker{}, nil
13 default:
14 return nil, fmt.Errorf(`task: invalid method "%s"`, method)
15 }
16}

Callers 2

statusOnErrorMethod · 0.92
IsTaskUpToDateFunction · 0.85

Calls 2

NewTimestampCheckerFunction · 0.85
NewChecksumCheckerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…