MCPcopy Create free account
hub / github.com/conforma/cli / shouldTriggerFallbackForComponent

Function shouldTriggerFallbackForComponent

cmd/validate/vsa.go:1791–1802  ·  view source on GitHub ↗

shouldTriggerFallbackForComponent determines if fallback should be triggered for a component

(err error, result *vsa.ValidationResult)

Source from the content-addressed store, hash-verified

1789
1790// shouldTriggerFallbackForComponent determines if fallback should be triggered for a component
1791func shouldTriggerFallbackForComponent(err error, result *vsa.ValidationResult) bool {
1792 if err != nil {
1793 return true
1794 }
1795 if result != nil && !result.Passed {
1796 return true
1797 }
1798 if result != nil && result.PredicateOutcome != "" && result.PredicateOutcome != "passed" {
1799 return true
1800 }
1801 return false
1802}
1803
1804// handleComponentFallback handles fallback validation for a component
1805func handleComponentFallback(ctx context.Context, component app.SnapshotComponent, data *validateVSAData, result *vsa.ValidationResult, workerFallbackContext *vsa.WorkerFallbackContext) vsa.ComponentResult {

Calls

no outgoing calls

Tested by 1