Skip to content

fix(examples): set-up/basic must pass --include-configuration (closes #92)#98

Merged
pofallon merged 1 commit into
mainfrom
fix/92-set-up-snapshot-fields
May 28, 2026
Merged

fix(examples): set-up/basic must pass --include-configuration (closes #92)#98
pofallon merged 1 commit into
mainfrom
fix/92-set-up-snapshot-fields

Conversation

@pofallon
Copy link
Copy Markdown
Contributor

Summary

#92 reported set-up's snapshot fields (remoteUser, remoteEnv.DEACON_SET_UP_DEMO) as missing. Investigation shows this is an example bug, not a deacon spec violation:

  • Upstream devcontainerCli.ts set-up implementation explicitly flag-gates both fields:
    configuration:        parsed.includeConfig       ? updatedConfig  : undefined,
    mergedConfiguration:  parsed.includeMergedConfig ? updatedMerged  : undefined,
  • Deacon mirrors this contract.
  • The example just forgot to ask for the fields.

Add --include-configuration --include-merged-configuration to the set-up invocation. Closes #92.

Verification

examples/set-up/basic/exec.sh:

  • Before: FAIL: remoteUser != root
  • After:

    ok: /tmp/onCreate.flag present
    ok: /tmp/postCreate.flag present
    ok: /tmp/postStart.flag present
    remoteUser=root
    DEACON_SET_UP_DEMO=1
    ok: lifecycle suppressed
    All scenarios passed.

🤖 Generated with Claude Code

…92)

#92 reported set-up's snapshot fields (`remoteUser`,
`remoteEnv.DEACON_SET_UP_DEMO`) as missing — flagged as a spec
compliance issue. Investigation shows deacon's behavior is correct:
per the upstream `devcontainerCli.ts` set-up implementation, the
`configuration` and `mergedConfiguration` JSON fields are explicitly
flag-gated:

    configuration:        parsed.includeConfig       ? updatedConfig  : undefined,
    mergedConfiguration:  parsed.includeMergedConfig ? updatedMerged  : undefined,

The example just forgot to ask for them. Add
`--include-configuration --include-merged-configuration` to the
`set-up` invocation so the snapshot includes the fields the
following assertions read.

After this change `examples/set-up/basic/exec.sh` passes end-to-end
against released deacon.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@github-actions github-actions Bot added the docs Documentation changes label May 28, 2026
@pofallon pofallon merged commit 18e51c8 into main May 28, 2026
10 checks passed
@pofallon pofallon deleted the fix/92-set-up-snapshot-fields branch May 28, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

set-up JSON output omits remoteUser / containerEnv values from the snapshot

1 participant