Skip to content

Commit c8e03f2

Browse files
committed
Make P4 temp workspace persistent for graph execution
The worker must run in the workspace root so p4 sync in graph nodes can resolve paths correctly. Without Persistent: true, the worker copies the script to a separate work/ dir and deletes the checkout.
1 parent 017cf5e commit c8e03f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/vcs/p4.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func (p *P4Provider) Checkout(ctx context.Context, url, ref, pipeline, destDir s
132132
return CheckoutResult{}, fmt.Errorf("p4 sync pipeline file failed: %w", err)
133133
}
134134

135-
return CheckoutResult{Dir: absDir, P4Client: p.clientName}, nil
135+
return CheckoutResult{Dir: absDir, Persistent: true, P4Client: p.clientName}, nil
136136
}
137137

138138
func (p *P4Provider) Cleanup(ctx context.Context) error {

0 commit comments

Comments
 (0)