Skip to content

[pull] main from hashicorp:main#345

Merged
pull[bot] merged 2 commits into
meonBot:mainfrom
hashicorp:main
Jul 16, 2026
Merged

[pull] main from hashicorp:main#345
pull[bot] merged 2 commits into
meonBot:mainfrom
hashicorp:main

Conversation

@pull

@pull pull Bot commented Jul 16, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

…ne spacings in human output. Add output for unhappy path. (#38823)

Enables colourised output in `state migrate` command, enabling formatting human-readable output. Also, add empty lines to human output to separate distinct parts of the output.

Also, this change adds user-facing messages for unhappy paths. Users need some reassurance that their state is ok when an error happens, and also need a heads up when the failing command has impacted the destination location before erroring.

Finally this change enables tests to assert that log output matches parameterized human output golden references. Those files are expected to be identifiable by filename: output-parameterized.log.
… migrate` is run with `-force-copy`. (#38882)

Pre-existing state migration logic in the Meta's `backendMigrateState` method was originally written only for use with `init`. In `init` users are expected to supply the `-force-copy` to suppress prompts about copying state data. State migrations in automation require `-input=false -force-copy`.

In `state migrate` we have to decide how to handle the prompts suppressed by `-force-copy` in the init command. Due to approving a migration being analogous to approving a plan created during an apply command, which requires `-input=false -auto-approve` to run in automation, we add a `-force-copy` flag to the state migrate command.
@pull pull Bot locked and limited conversation to collaborators Jul 16, 2026
@pull pull Bot added the ⤵️ pull label Jul 16, 2026
@pull
pull Bot merged commit c9b1db2 into meonBot:main Jul 16, 2026
1 check failed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant