Skip to content

writ deploy --dry-run returns before the conflict pre-flight, so a dry run cannot say what stop will refuse #853

Open

Description

@David-Noble-at-work

while checking whether --conflict=replace had been necessary on a deploy that had just run.

Observed

writ deploy --allow-dirty --dry-run common noblefactor printed the plan and exited 0 with no word about
occupied targets. It cannot say anything about them: cmd/writ/writ/deploy/deploy.go returns the graphs on
cfg.DryRun before preflightConflicts runs. The pre-flight — the pass that, under the default stop,
classifies every occupied target as writ's own unmodified output or a violation and refuses on the latter —
is exactly what a dry run exists to preview, and it is the one pass a dry run skips.

Wanted

Evidence of completion

Related

#831 (the pre-flight misses directory targets), #842 (narrate every conflict), #822 (mkdir ignores the policy).

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions