Merge develop into infrahub-develop#1179
Merged
Merged
Conversation
) ## feat(ctl): add marketplace --dependencies flag with server-side resolution Add `--dependencies` flag to `marketplace get` for collections and schemas, recursively downloading transitive dependencies resolved server-side via new `/dependencies` endpoints. ### Key features - **Collections:** prerequisite collections grouped into subdirectories, members and standalone schemas in output root - **Schemas:** dependencies grouped by owning collection (or root if standalone) - **Soft-fail** for unresolved/missing schema dependencies; strict for collection members - **Deduplication, cycle safety,** and reconciliation with existing schemas (keep by default, overwrite with `-y`) - **Path validation** (`_safe_segment`) to prevent directory traversal attacks - **Versioned** schema downloads resolve the pinned version's dependencies ### Technical changes - Replaced client-side dependency walk with single server-side `/dependencies` endpoint call - Report visibility-hidden dependencies in summary **Refs:** IHS-246, #1117
Merge stable into develop
Deploying infrahub-sdk-python with
|
| Latest commit: |
e27f5f0
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c31ab5e1.infrahub-sdk-python.pages.dev |
| Branch Preview URL: | https://develop.infrahub-sdk-python.pages.dev |
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## infrahub-develop #1179 +/- ##
====================================================
+ Coverage 83.04% 83.12% +0.08%
====================================================
Files 139 139
Lines 12703 12847 +144
Branches 1906 1934 +28
====================================================
+ Hits 10549 10679 +130
- Misses 1586 1593 +7
- Partials 568 575 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes 🚀 New features to boost your workflow:
|
infrahub-github-bot-app
Bot
merged commit Jul 14, 2026
b3f3912
into
infrahub-develop
36 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merging develop into infrahub-develop after merging pull request #1177.
Summary by cubic
Add dependency-aware downloads to
infrahubctl marketplace getand a-y/--yesoverwrite option. This resolves and fetches transitive schema dependencies via the Marketplace API and organizes them consistently on disk or stdout.--dependencies: resolves transitive deps via/dependenciesfor schemas and collections (respects-vfor pinned versions).<collection>/; standalone deps → output root; schema deps grouped by owning collection.-y/--yes: overwrite existing files; otherwise keep and avoid duplicates (prompt only on TTY).---separators for multi-doc stdout; docs and tests updated.Written for commit e27f5f0. Summary will update on new commits.