fix(marketplace): make the empty ansible and k8s packages installable #206

Merged
Defame1297 merged 1 commits from fix/empty-packages-install into main 2026-11-22 20:35:10 +00:00
Owner

Refs #188 (fix for #205; the root wiring PR follows)

Problem

ansible and k8s were published in #205 with only an apm.yml. apm accepts a package fetched from a remote only if it has a .apm/ directory, declares dependencies, or ships a skills/ bundle (apm_cli/models/validation.py, detect_package_type). So installing either one fails:

Not a valid APM package: k8s has apm.yml but is missing the required .apm/ directory.

gitops depends on k8s, so installing gitops from main fails too. delivery declares dependencies and is unaffected. #205's scratch check missed this because a local-path install skips the validation.

Fix

Add an empty .apm/ to ansible and k8s, kept in git by a .gitkeep. It becomes redundant once each package's first skill lands.

Verification

  • apm's validator (validate_apm_package), run on git archive exports of each branch: on main, ansible and k8s are INVALID with the error above; on this branch, all four packages are valid.
  • Real remote install from this pushed branch (git: …Holocron.git, path: plugins/{k8s,ansible}, ref: fix/empty-packages-install): exit 0, nothing deployed.
  • Hooks: pre-commit run --all-files and pre-commit run --hook-stage pre-push --all-files all pass.

Next

Once this merges, a follow-up PR adds the four packages to root apm.yml, runs apm install, the suite and the pre-push hooks, and closes #188.

🤖 Generated with Claude Code

https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN

Refs #188 (fix for #205; the root wiring PR follows) ## Problem `ansible` and `k8s` were published in #205 with only an `apm.yml`. apm accepts a package fetched from a remote only if it has a `.apm/` directory, declares dependencies, or ships a `skills/` bundle (`apm_cli/models/validation.py`, `detect_package_type`). So installing either one fails: > Not a valid APM package: k8s has apm.yml but is missing the required .apm/ directory. `gitops` depends on `k8s`, so **installing `gitops` from `main` fails too**. `delivery` declares dependencies and is unaffected. #205's scratch check missed this because a local-path install skips the validation. ## Fix Add an empty `.apm/` to `ansible` and `k8s`, kept in git by a `.gitkeep`. It becomes redundant once each package's first skill lands. ## Verification - **apm's validator** (`validate_apm_package`), run on `git archive` exports of each branch: on `main`, `ansible` and `k8s` are INVALID with the error above; on this branch, all four packages are valid. - **Real remote install** from this pushed branch (`git: …Holocron.git`, `path: plugins/{k8s,ansible}`, `ref: fix/empty-packages-install`): exit 0, nothing deployed. - **Hooks:** `pre-commit run --all-files` and `pre-commit run --hook-stage pre-push --all-files` all pass. ## Next Once this merges, a follow-up PR adds the four packages to root `apm.yml`, runs `apm install`, the suite and the pre-push hooks, and closes #188. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
Claude added 1 commit 2026-11-22 20:34:32 +00:00
A package fetched from a remote is valid only when it has a .apm/
directory, declares dependencies, or ships a skills/ bundle
(apm_cli/models/validation.py, detect_package_type). ansible and k8s were
published in #205 with none of these, so installing either fails with
"has apm.yml but is missing the required .apm/ directory". So does
gitops, which depends on k8s. The scratch check in #205 missed this
because a local-path install skips that validation.

Each package gets an empty .apm/ that git can track through a .gitkeep.
The placeholder becomes redundant once the package's first skill lands.
apm's validator now reports all four packages as valid. On main it
reports ansible and k8s as invalid.

Refs: #188

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012CqgnwEGtmfsjcoG9QwByN
Defame1297 merged commit 2815574a31 into main 2026-11-22 20:35:10 +00:00
Defame1297 deleted branch fix/empty-packages-install 2026-11-22 20:35:11 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Holocron#206