Skip to main content

GeneratorGroup

API reference

Implements Node

id: ID!

A unique identifier for this GeneratorGroup.

isEmpty: Boolean!

Whether the generated changeset from the last run is empty or not

loadFailures: [String!]!

Load failures tolerated while collecting the generators.

Empty unless a workspace module could not be loaded during an unscoped 'dagger generate' (no selector), where load failures are tolerated so the modules that do load still generate. Each entry is a human-readable error message. An explicit selector keeps failing hard instead.

changes(onConflict: ChangesetsMergeConflict = FAIL_EARLY): Changeset!

The combined changes from the last run of the generators

If any conflict occurs, for instance if the same file is modified by multiple generators, or if a file is both modified and deleted, an error is raised and the merge of the changesets will failed.

Set 'continueOnConflicts' flag to force to merge the changes in a 'last write wins' strategy.

onConflict: ChangesetsMergeConflict = FAIL_EARLY

Strategy to apply on conflicts between generators

list: [Generator!]!

Return a list of individual generators and their details

run: GeneratorGroup!

Execute all selected generators

References

Returned by

Accepted as an argument by