Show package details on install
Rolling Release / build (push) Successful in 1m39s
Rolling Release / publish (push) Successful in 8s

Installs, syncs and upgrades print each new build's paths, bins and
dependencies. orbit info prints the same, also for a project's packages.

Planning: y4x2r

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
nandiandClaude Opus 5.5 committed 2026-12-01 05:30:41 -08:00
1 parent cc47acb3e2
commit abd0dfca1e
6 files changed
+209 -32

No files matched your search

+10 -26
View File
@@ -384,6 +384,7 @@ async fn activate(ctx : Ctx, st : Step) -> Unit raise OrbitError {
link_bins(ctx, dir, st.manifest.bins)
// Persist after each package so a later failure leaves accurate state.
save_state(ctx)
print_details(installed_details(ctx, ctx.state[st.name]), " ")
}
///|
@@ -765,32 +766,15 @@ fn cmd_info(ctx : Ctx, spec : String) -> Unit raise OrbitError {
raise OrbitError("\{spec} is not installed (installed from '\{p.channel}')")
}
println("\{name} \{p.version} (installed)")
if p.description != "" {
println(" description: \{p.description}")
}
println(" channel: \{p.channel}")
println(" digest: \{p.digest}")
println(" constraint: \{p.constraint}")
println(" bin: \{join(p.bins, " ")}")
let deps : Array[String] = []
for d, c in p.depends {
deps.push(d + "@" + c)
}
println(" depends: \{join(deps, " ")}")
if !p.conflicts.is_empty() {
let cs : Array[String] = []
for n, c in p.conflicts {
cs.push(n + "@" + c)
}
println(" conflicts: \{join(cs, " ")}")
}
let rd = reverse_deps(ctx, name)
println(" needed by: \{join(rd, " ")}")
let hist : Array[String] = []
for g in p.history {
hist.push(g.version)
}
println(" rollback: \{join(hist, " ")}")
print_details(installed_details(ctx, p), " ")
print_details(
[
("constraint", [p.constraint]),
("needed by", [join(reverse_deps(ctx, name), " ")]),
("rollback", [join(p.history.map(g => g.version), " ")]),
],
" ",
)
}
///|