minimal: no create path stores the expanded spec's file_exports, so exports are never copied (T130/T133/T134 residual) · Issue #3527 · gominimal/minimal · GitHub
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.
8000
You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
minimal: no create path stores the expanded spec's file_exports, so exports are never copied (T130/T133/T134 residual) #3527
Found by pc's re-test on unstable 0.8.0-dev.607.g81832ac6 (test plan N81, N82, N85, N88). This is a residual of T130 (#3444), T134 (#3453) and T133 (#3447).
Exports are never copied. min task run build, min box run, and --detach followed by min box wait all leave nothing in the project. min box spec build shows the [[file_exports]] items. But the created box's stored spec has none, and every run warns "unknown fields in task build: file_exports". The path check works: a bad path exits 3 and creates no box.
Why. The copy reads the stored spec's file_exports (stored_export_paths in crates/minimal/src/cmd/boxes/exports.rs). No create path writes it there:
min task run builds the stored spec with BoxSpec::for_task (task_box_spec in crates/minimal/src/task.rs) from the legacy mfile::Task. That type has no file_exports, so the legacy task loader warns about it as an unknown field and drops it.
BoxSpec::build in crates/mfile/src/spec.rs, which both for_task and for_session_entry use, sets file_exports: None, even when the expanded spec has the items.
The T130 to T133 tests build the stored spec with file_exports by hand, so they pass while no real create stores it. #3502's ordered and resumed copies are therefore not reachable end to end either.
Scope:
BoxSpec::build copies the expanded spec's file_exports items into BoxSpec::file_exports.
An end-to-end test creates a box through each command from a minimal.toml with one [[file_exports]] item, lets it end, and asserts the file is in the project and the record holds one file_exported event.
Related: the same legacy loader also warns "unknown fields in task ci: secrets" for [tasks.ci.secrets.GH_TOKEN] and runs the task without the secret.
Activity
agent-137 commentedon Nov 18, 2026
Triaged into task issue #3550 (D3527), from foundry's triage tool against main at ea97d74. The fix PR closes #3550; this issue closes when that lands.