You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(ctl): reconcile existing schemas when resolving dependencies
Avoid duplicating a schema across the output tree when resolving dependencies:
before writing, reconcile against schemas already present (e.g. a dependency at
the root vs. a copy under a collection directory from a prior download). An
already-present schema is kept by default, or overwritten in place with the new
`-y`/`--yes` flag; an interactive terminal is prompted. Only files present before
the run are considered, and the check is skipped entirely without --dependencies
and in --stdout mode, so existing behavior is unchanged.
Refs: IHS-246, #1117
Added a `--dependencies` flag to `infrahubctl marketplace get`. When downloading a schema or a collection, it now also resolves and downloads the schemas they depend on, via the marketplace API. For collections, prerequisite collections are grouped into their own directories and standalone dependency schemas land in the output root; for a single schema, its transitive dependencies are downloaded alongside it. Resolution is transitive and cycle-safe, and referenced kinds the marketplace cannot resolve are reported as unresolved dependencies.
1
+
Added a `--dependencies` flag to `infrahubctl marketplace get`. When downloading a schema or a collection, it now also resolves and downloads the schemas they depend on, via the marketplace API. For collections, prerequisite collections are grouped into their own directories and standalone dependency schemas land in the output root; for a single schema, its transitive dependencies are downloaded alongside it. Resolution is transitive and cycle-safe, and referenced kinds the marketplace cannot resolve are reported as unresolved dependencies. A schema that already exists in the output directory is reconciled to a single file rather than duplicated across directories — kept by default, or overwritten with the new `-y`/`--yes` flag.
0 commit comments