Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Implementation Status

These docs describe Kargo as designed. This page tracks how much of it runs today.

When a page and your terminal disagree, this table is right.

MarkerMeaning
🟢 ImplementedWorks today. Behaves as documented, bugs aside.
🟡 PartialPartly working. The notes say which part.
⚪ PlannedSpecified and designed, not yet built. Commands exit with "not yet implemented".

Last reviewed against the source tree at version 0.2.0.

Project setup

FeatureStatusNotes
kargo new / kargo init🟢All five templates generate and build.
Templates jvm, lib, kmp, cmp, android🟢Embedded in the binary; no network needed.
Manifest parsing🟢The full Kargo.toml schema parses, including sections not yet acted on.
${env:…} interpolation🟢Resolved at manifest load.
.kargo.env loading🟢
kargo env🟢Masked by default, --reveal to show.

Dependencies

FeatureStatusNotes
kargo add / remove🟢Format-preserving manifest edits.
kargo fetch / lock / update🟢
kargo tree🟢Including --why, --conflicts, --licenses, --duplicates, --inverted.
kargo outdated🟢
kargo audit🟢Live queries against the OSV database.
Maven resolution🟢POM inheritance, BOM imports, nearest-wins mediation, scopes, exclusions.
Lockfile🟢Deterministic and checksummed.
Version catalogs🟡[catalog] parses; { catalog = … } references are not resolved yet.
Gradle Module Metadata🟡Parsed where present; not yet used for variant-aware selection.
Offline mode🟢--offline on build and fetch.

Building

FeatureStatusNotes
kargo build🟢One target per invocation.
kargo run🟢JVM targets.
kargo check🟢
kargo clean🟢
kargo watch🟢
Incremental compilation🟢Fingerprint-based unit skipping.
Parallel compilation⚪Single-threaded. One unit per build, and -Xbackend-threads is unsafe in the supported Kotlin versions, so [build] jobs bounds nothing.
Local build cache🟢kargo cache stats / clean / push.
Remote build cache⚪[cache] keys parse; no transport yet.
Build profiles🟢dev and release, plus custom profiles.
KSP annotation processing🟢Processor toolchain is fetched and run before the main compile; generated sources are fed back in.
KAPT annotation processing🟢Stubs, [kapt-options], and processor-named errors all work, and KAPT runs alongside KSP in one build. Every pass is a full pass — no incremental processing — and javac options have no manifest key.
--timings🟢Text output. The HTML timeline is planned.
JVM target🟢
Android JVM target🟡Compiles against android.jar and .aar dependencies; no resource or manifest merging.
JS target🟡Compiler backend exists; not reachable from a multi-target build yet.
Native targets🟡Compiler backend exists; not reachable from a multi-target build yet.
WebAssembly targets⚪
Multi-target builds🟡Targets build one at a time via --target; no single-pass KMP build.
Source-set hierarchy inference🟢Intermediate sets are inferred from the target list, a build compiles the chain for its own target, and resources merge along it.
Explicit [source-sets.*]🟢Declared directories, parents and target groupings replace what the conventions infer.
expect/actual validation⚪
CInterop⚪[target.*.cinterop] parses.
Compose Multiplatform⚪[compose] parses and source-set discovery knows about Compose resources, but the compiler-plugin module is a stub.
Flavors and variants🟡[flavors] parses and BuildConfig generation exists, but --flavor, --variant, and --all-variants are accepted and ignored.

Testing and quality

FeatureStatusNotes
kargo test🟡Runs JVM tests with --target and --filter. --coverage, --report, --parallel, --flavor, --repeat, and --fail-fast are not implemented.
Coverage⚪[test.coverage] parses.
kargo bench⚪
kargo lint⚪The kargo-lint crate is scaffolded; the rule modules are stubs.
kargo fmt⚪The formatter module is a stub.
kargo fix⚪

Toolchains

FeatureStatusNotes
Kotlin auto-download🟢From JetBrains releases or a configured mirror.
kargo toolchain …🟢install, list, remove, use, path.
JDK discovery🟢JAVA_HOME, .kargo.env, common install paths.
JDK installation🟢kargo toolchain install --jdk [version].
Android SDK discovery🟢ANDROID_HOME / ANDROID_SDK_ROOT / .kargo.env.
Apple SDK discovery🟢Via xcrun.
Android SDK installation🟢kargo toolchain install --android [level].
Kotlin compile daemon🟢Reused across builds; kargo cache stop-daemon stops it.
kargo self update🟢

Distribution

FeatureStatusNotes
kargo publish⚪kargo-maven has the module in place but it returns "not yet implemented".
kargo login⚪
kargo package⚪
Docker packaging⚪
XCFramework packaging⚪
Artifact signing⚪[signing] parses.
Prebuilt binary releases🟢Five targets plus sha256sums.txt, published with every release.

Extensibility and tooling

FeatureStatusNotes
Hooks⚪[hooks] parses; the kargo-plugin crate is scaffolded with stub modules.
Subcommand plugins⚪
Script plugins⚪Loader and sandbox modules are scaffolded stubs.
WASM plugins⚪Design only.
kargo metadata⚪
kargo lsp⚪
kargo doctor⚪
kargo migrate⚪
kargo doc⚪
kargo repl / kargo script⚪
kargo completions🟢bash, zsh, fish, powershell, elvish. Static scripts; plugin subcommands are not completed.
Workspaces🟡[workspace] parses; member builds are not orchestrated.

Roadmap

Phases are delivery order, not dates.

PhaseScopeStatus
1. FoundationCore types, manifest parsing, templates, new / init / clean / env🟢 Done
2. ToolchainKotlin auto-download, JDK and SDK discovery, toolchain commands🟢 Done
3. Maven and resolutionPOM parsing, resolution, lockfile, add / tree / outdated / audit🟢 Done
4. Compilationkotlinc invocation, incremental builds, build cache, build / run / test / check🟢 Done
5. KMP, Compose, flavorsMulti-target builds, source-set hierarchy, Compose plugin, variants🟡 In progress
6. Code qualityLinter, formatter, coverage, benchmarks⚪ Planned
7. Plugins and hooksHook lifecycle, subcommand discovery, script plugins⚪ Planned
8. PackagingFat JAR, Docker, XCFramework, signing, publishing⚪ Planned
9. Security and insightOffline hardening, dependency insights, audit policy⚪ Planned
10. IDE and DXmetadata, LSP, doctor, migrate, completions🟡 In progress

Keeping this honest

If a feature marked 🟢 here does not work, that is a bug worth filing — either in the code or in this table. Both are mistakes.