terraform/internal/command
James Bardin a5077e7ddb don't panic on invalid keys for relevant attrs
The PathMatcher used when rendering diffs assumes the caller knows the
structure the path was derived from, which is incorrect.
RelevantAttributes is derived from references to an object, which may
have errors hidden by `try` or `can` functions, or the data may not have
been updated to match paths via targeted operations.

Even in the case where the data may be incorrect, we can't crash when
rendering the data, because the user may not be able to work around the
panic with no other information about which resource contains unexpected
references.
2026-03-11 14:12:25 -04:00
..
arguments Fix import and show command 2026-03-04 11:45:59 +01:00
cliconfig make copyrightfix 2026-02-17 13:56:34 +00:00
clistate make copyrightfix 2026-02-17 13:56:34 +00:00
e2etest test: Fix E2E tests to use correct errors for assertions, remove use of ioutil in package (#38254) 2026-03-10 13:34:18 +00:00
format make copyrightfix 2026-02-17 13:56:34 +00:00
jsonchecks make copyrightfix 2026-02-17 13:56:34 +00:00
jsonconfig Use configuration values for jsonconfig 2026-03-04 11:45:59 +01:00
jsonformat don't panic on invalid keys for relevant attrs 2026-03-11 14:12:25 -04:00
jsonfunction Merge pull request #38160 from hashicorp/jbardin/inline-type-conversion 2026-02-27 11:11:09 -04:00
jsonplan chore (actions): rename LifecycleActionTrigger -> ResourceActionTrigger in plan and proto 2026-02-23 15:17:45 -05:00
jsonprovider expose deprecation on provider schema 2026-02-23 15:38:55 +01:00
jsonstate make copyrightfix 2026-02-17 13:56:34 +00:00
junit make copyrightfix 2026-02-17 13:56:34 +00:00
testdata Add more dynamic module sources tests 2026-03-04 11:45:59 +01:00
testing make copyrightfix 2026-02-17 13:56:34 +00:00
views move initwd config loading into terraform 2026-03-06 11:59:59 +01:00
webbrowser make copyrightfix 2026-02-17 13:56:34 +00:00
workdir PSS: Fix use of reattached providers in init, enable use of reattached providers during plan-apply workflow (#38182) 2026-02-18 11:53:15 +00:00
apply.go Rework most of the configuration loading 2026-03-04 11:45:59 +01:00
apply_destroy_test.go test: Enable assertions about prompt text shown to users (#38212) 2026-02-26 14:57:42 +00:00
apply_test.go test: Enable assertions about prompt text shown to users (#38212) 2026-02-26 14:57:42 +00:00
autocomplete.go make copyrightfix 2026-02-17 13:56:34 +00:00
autocomplete_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
cli_ui.go make copyrightfix 2026-02-17 13:56:34 +00:00
cli_ui_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
cloud.go make copyrightfix 2026-02-17 13:56:34 +00:00
cloud_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
command.go remove copied default value 2026-02-18 12:47:12 +01:00
command_test.go Rework most of the configuration loading 2026-03-04 11:45:59 +01:00
console.go use pre-existing loaders where possible 2026-02-18 12:47:12 +01:00
console_interactive.go make copyrightfix 2026-02-17 13:56:34 +00:00
console_interactive_solaris.go make copyrightfix 2026-02-17 13:56:34 +00:00
console_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
experimental_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
flag_kv.go make copyrightfix 2026-02-17 13:56:34 +00:00
flag_kv_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
fmt.go make copyrightfix 2026-02-17 13:56:34 +00:00
fmt_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
get.go make copyrightfix 2026-02-17 13:56:34 +00:00
get_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
graph.go make copyrightfix 2026-02-17 13:56:34 +00:00
graph_test.go Rework most of the configuration loading 2026-03-04 11:45:59 +01:00
helper.go make copyrightfix 2026-02-17 13:56:34 +00:00
hook_module_install.go make copyrightfix 2026-02-17 13:56:34 +00:00
import.go Fix import and show command 2026-03-04 11:45:59 +01:00
import_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
init.go Add variable arguments to init help text 2026-03-05 16:48:47 +01:00
init2_test.go Add more dynamic module sources tests 2026-03-04 11:45:59 +01:00
init_run.go command/init: Merge duplicated PSS logic back into existing codepath (#38227) 2026-03-04 08:40:42 +00:00
init_test.go PSS: Enable state store configuration change (#38153) 2026-02-26 15:00:13 +00:00
login.go make copyrightfix 2026-02-17 13:56:34 +00:00
login_test.go test: Enable assertions about prompt text shown to users (#38212) 2026-02-26 14:57:42 +00:00
logout.go make copyrightfix 2026-02-17 13:56:34 +00:00
logout_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
meta.go Rework most of the configuration loading 2026-03-04 11:45:59 +01:00
meta_backend.go PSS: Enable state store configuration change (#38153) 2026-02-26 15:00:13 +00:00
meta_backend_errors.go PSS: Enable state store configuration change (#38153) 2026-02-26 15:00:13 +00:00
meta_backend_migrate.go make copyrightfix 2026-02-17 13:56:34 +00:00
meta_backend_migrate_test.go test: Enable assertions about prompt text shown to users (#38212) 2026-02-26 14:57:42 +00:00
meta_backend_test.go PSS: Enable state store configuration change (#38153) 2026-02-26 15:00:13 +00:00
meta_config.go Feedback: Rename remaining static -> const 2026-03-04 11:45:59 +01:00
meta_dependencies.go make copyrightfix 2026-02-17 13:56:34 +00:00
meta_dependencies_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
meta_new.go make copyrightfix 2026-02-17 13:56:34 +00:00
meta_providers.go make copyrightfix 2026-02-17 13:56:34 +00:00
meta_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
metadata_command.go make copyrightfix 2026-02-17 13:56:34 +00:00
metadata_functions.go make copyrightfix 2026-02-17 13:56:34 +00:00
metadata_functions_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
modules.go make copyrightfix 2026-02-17 13:56:34 +00:00
modules_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
output.go make copyrightfix 2026-02-17 13:56:34 +00:00
output_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
plan.go use pre-existing loaders where possible 2026-02-18 12:47:12 +01:00
plan_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
plugins.go make copyrightfix 2026-02-17 13:56:34 +00:00
plugins_lock.go make copyrightfix 2026-02-17 13:56:34 +00:00
plugins_lock_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
plugins_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
providers.go refactor providers command argument parsing 2026-02-17 15:55:36 +01:00
providers_lock.go refactor providers lock command argument parsing 2026-02-17 15:55:45 +01:00
providers_lock_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
providers_mirror.go refactor providers mirror command argument parsing 2026-02-17 15:55:36 +01:00
providers_mirror_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
providers_schema.go refactor providers schema command argument parsing 2026-02-17 15:55:36 +01:00
providers_schema_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
providers_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
push.go make copyrightfix 2026-02-17 13:56:34 +00:00
query.go use pre-existing loaders where possible 2026-02-18 12:47:12 +01:00
query_test.go command/views: Bump UI version to v1.3 (#38231) 2026-03-04 10:09:21 +00:00
refresh.go use pre-existing loaders where possible 2026-02-18 12:47:12 +01:00
refresh_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
show.go Fix import and show command 2026-03-04 11:45:59 +01:00
show_test.go Update module call configuration storage 2026-03-04 11:45:59 +01:00
stacks.go make copyrightfix 2026-02-17 13:56:34 +00:00
stacks_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
state_command.go make copyrightfix 2026-02-17 13:56:34 +00:00
state_identities.go make copyrightfix 2026-02-17 13:56:34 +00:00
state_identities_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
state_list.go refactor state-list command argument parsing 2026-02-17 15:55:45 +01:00
state_list_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
state_meta.go make copyrightfix 2026-02-17 13:56:34 +00:00
state_mv.go refactor state-mv command argument parsing 2026-02-17 15:55:45 +01:00
state_mv_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
state_pull.go refactor state-pull command argument parsing 2026-02-17 15:55:45 +01:00
state_pull_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
state_push.go refactor state-push command argument parsing 2026-02-17 15:55:45 +01:00
state_push_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
state_replace_provider.go refactor state-replace-provider command argument parsing 2026-02-17 15:55:45 +01:00
state_replace_provider_test.go refactor state-replace-provider command argument parsing 2026-02-17 15:55:45 +01:00
state_rm.go refactor state-rm command argument parsing 2026-02-17 15:55:45 +01:00
state_rm_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
state_show.go refactor state-show command argument parsing 2026-02-17 15:55:45 +01:00
state_show_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
state_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
taint.go use the arguments package for taint commands 2026-02-17 15:55:36 +01:00
taint_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
telemetry.go make copyrightfix 2026-02-17 13:56:34 +00:00
test.go remove unused Meta.variableArgs 2026-02-18 12:47:12 +01:00
test_cleanup.go make copyrightfix 2026-02-17 13:56:34 +00:00
test_test.go move load config calls to new mechanism 2026-03-06 11:59:59 +01:00
ui_input.go test: Enable assertions about prompt text shown to users (#38212) 2026-02-26 14:57:42 +00:00
ui_input_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
unlock.go make copyrightfix 2026-02-17 13:56:34 +00:00
unlock_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
untaint.go use the arguments package for taint commands 2026-02-17 15:55:36 +01:00
untaint_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
validate.go make copyrightfix 2026-02-17 13:56:34 +00:00
validate_test.go Rework most of the configuration loading 2026-03-04 11:45:59 +01:00
version.go make copyrightfix 2026-02-17 13:56:34 +00:00
version_test.go make copyrightfix 2026-02-17 13:56:34 +00:00
workspace_command.go make copyrightfix 2026-02-17 13:56:34 +00:00
workspace_command_test.go remove copied default value 2026-02-18 12:47:12 +01:00
workspace_delete.go make copyrightfix 2026-02-17 13:56:34 +00:00
workspace_list.go make copyrightfix 2026-02-17 13:56:34 +00:00
workspace_new.go make copyrightfix 2026-02-17 13:56:34 +00:00
workspace_select.go make copyrightfix 2026-02-17 13:56:34 +00:00
workspace_show.go make copyrightfix 2026-02-17 13:56:34 +00:00