Skip to content

Commit 2ef5651

Browse files
drichardsonclaude
andcommitted
docs: clarify why negated generates globs are skipped in existence check
Assisted by AI Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a73a718 commit 2ef5651

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

internal/fingerprint/sources_checksum.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ func (checker *ChecksumChecker) IsUpToDate(t *ast.Task) (bool, error) {
5353
if len(t.Generates) > 0 {
5454
// For each specified 'generates' field, check whether the files actually exist
5555
for _, g := range t.Generates {
56+
// Exclusion patterns don't represent output files; skip them.
5657
if g.Negate {
5758
continue
5859
}

internal/fingerprint/sources_timestamp.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ func (checker *TimestampChecker) IsUpToDate(t *ast.Task) (bool, error) {
3737
// file means the task must run regardless of timestamps.
3838
if len(t.Generates) > 0 {
3939
for _, g := range t.Generates {
40+
// Exclusion patterns don't represent output files; skip them.
4041
if g.Negate {
4142
continue
4243
}

0 commit comments

Comments
 (0)