MCPcopy Index your code
hub / github.com/dagger/dagger / RunGeneratorAsCheck

Method RunGeneratorAsCheck

core/modtree.go:126–136  ·  view source on GitHub ↗
(ctx context.Context, include, exclude []string)

Source from the content-addressed store, hash-verified

124}
125
126func (node *ModTreeNode) RunGeneratorAsCheck(ctx context.Context, include, exclude []string) error {
127 return node.runAsCheck(ctx,
128 func(n *ModTreeNode) bool { return n.IsGenerator },
129 func(n *ModTreeNode, ctx context.Context) (bool, error) {
130 return n.tryRunGeneratorAsCheckScaleOut(ctx)
131 },
132 func(n *ModTreeNode, ctx context.Context) error {
133 return n.runGeneratorAsCheckLocally(ctx)
134 },
135 include, exclude)
136}
137
138// runAsCheck runs a leaf node as a check, with telemetry span and optional scale-out.
139func (node *ModTreeNode) runAsCheck(

Callers 2

RunMethod · 0.80
RunMethod · 0.80

Calls 3

runAsCheckMethod · 0.95

Tested by

no test coverage detected