Skip to content

Mode-switch doesn't prune a pre-existing .devcontainer/ on container→direnv migration #990

Closed

Description

@c-vigo

Description

Mode-switch is deliberately non-destructive toward a pre-existing
.devcontainer/ (#738): a container-mode .devcontainer/ is preserved when
re-running in direnv/bare. That is correct for coexistence, but on a real
container → direnv migration it strands the old container next to the new
flake, with no signal to remove it.

Concrete case from the rollout pilot: vig-os/commit-action carries an old
apt/Debian .devcontainer/ (broken — assumes a Debian base, see
vig-os/commit-action#30). A --mode direnv deploy would leave that stale,
broken container in place alongside the new flake.nix/.envrc.

Acceptance Criteria

Related Issues

Part of the mode-aware scaffold epic. Preserves #738 default behavior.

Part of #988.

Activity

  1. added this to the Backlog milestone on Jul 13, 2026
  2. added
    feature
    area:workspace
    effort:small
    semver:minor
    on Jul 13, 2026
  3. c-vigo commented on Jul 13, 2026

    @c-vigo
    ContributorAuthor

    Merged into the epic branch via #1000: opt-in --prune-devcontainer (init-workspace.sh + install.sh forwarding), interactive prompt, preview DELETED integration, #738 default preserved, MIGRATION.md runbook. Verified locally: 224/224 bats green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:workspaceeffort:smallfeaturesemver:minor

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions