Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/1117.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +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. Dependencies are grouped by the collection they belong to: prerequisite collections (and, for a single schema, dependencies that are members of a collection) are placed in their own `<collection>/` directory, while dependencies that belong to no collection land in the output root. 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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changelog is quite long, is this something we really want in a release note @minitriga?
You can take a look at the guidelines in infrahub project related to changelogs (infrahub/dev/guidelines/changelog.md), or the new skill @saltas888 is working on opsmill/infrahub#9663.
I think we need to copy the changelog file into the infrahub-sdk project aswell.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And has the initial PR been approved? #1118
My UI may have an issue, got a poor connection today.

2 changes: 2 additions & 0 deletions docs/docs/infrahubctl/infrahubctl-marketplace.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ $ infrahubctl marketplace get [OPTIONS] IDENTIFIER

* `-v, --version TEXT`: Specific schema version, for example 1.2.0. Default: latest published.
* `-c, --collection`: Force collection download. Default: auto-detect whether the identifier is a schema or collection.
* `--dependencies`: Also download the schemas this schema or collection depends on.
* `-y, --yes`: Overwrite schemas that already exist in the output directory without prompting.
* `-s, --stdout`: Print content to stdout instead of writing to disk. Status messages go to stderr.
* `-o, --output-dir PATH`: Directory to save downloaded files. [default: schemas]
* `--marketplace-url TEXT`: Base URL of the Infrahub Marketplace. Overrides configuration and environment.
Expand Down
Loading