terraform/internal/command
Radek Simko e4a8898d30
Some checks failed
build / Determine intended Terraform version (push) Has been cancelled
build / Determine Go toolchain version (push) Has been cancelled
Quick Checks / Unit Tests (push) Has been cancelled
Quick Checks / Race Tests (push) Has been cancelled
Quick Checks / End-to-end Tests (push) Has been cancelled
Quick Checks / Code Consistency Checks (push) Has been cancelled
build / Generate release metadata (push) Has been cancelled
build / Build for freebsd_386 (push) Has been cancelled
build / Build for linux_386 (push) Has been cancelled
build / Build for openbsd_386 (push) Has been cancelled
build / Build for windows_386 (push) Has been cancelled
build / Build for darwin_amd64 (push) Has been cancelled
build / Build for freebsd_amd64 (push) Has been cancelled
build / Build for linux_amd64 (push) Has been cancelled
build / Build for openbsd_amd64 (push) Has been cancelled
build / Build for solaris_amd64 (push) Has been cancelled
build / Build for windows_amd64 (push) Has been cancelled
build / Build for freebsd_arm (push) Has been cancelled
build / Build for linux_arm (push) Has been cancelled
build / Build for darwin_arm64 (push) Has been cancelled
build / Build for linux_arm64 (push) Has been cancelled
build / Build Docker image for linux_386 (push) Has been cancelled
build / Build Docker image for linux_amd64 (push) Has been cancelled
build / Build Docker image for linux_arm (push) Has been cancelled
build / Build Docker image for linux_arm64 (push) Has been cancelled
build / Build e2etest for linux_386 (push) Has been cancelled
build / Build e2etest for windows_386 (push) Has been cancelled
build / Build e2etest for darwin_amd64 (push) Has been cancelled
build / Build e2etest for linux_amd64 (push) Has been cancelled
build / Build e2etest for windows_amd64 (push) Has been cancelled
build / Build e2etest for linux_arm (push) Has been cancelled
build / Build e2etest for darwin_arm64 (push) Has been cancelled
build / Build e2etest for linux_arm64 (push) Has been cancelled
build / Run e2e test for linux_386 (push) Has been cancelled
build / Run e2e test for windows_386 (push) Has been cancelled
build / Run e2e test for darwin_amd64 (push) Has been cancelled
build / Run e2e test for linux_amd64 (push) Has been cancelled
build / Run e2e test for windows_amd64 (push) Has been cancelled
build / Run e2e test for linux_arm (push) Has been cancelled
build / Run e2e test for linux_arm64 (push) Has been cancelled
build / Run terraform-exec test for linux amd64 (push) Has been cancelled
v1.14 backport: backend/http: Refresh state earlier (align with other backends) (#38061)
* backend/http: Refresh state before returning StateMgr

This aligns the http backend with the implementation of StateMgr in other remote backends, which in turn enables easier testing of higher level logic that relies on certain backend behaviours.

* backend/http: Refactor TestHTTPBackend to allow custom method implementations

* add regression test for PR 38027
2026-01-14 16:04:40 +00:00
..
arguments query: add -query flag to validate command (#37671) (#37707) 2025-10-01 12:26:12 +02:00
cliconfig Apply some new go collection features (#36818) 2025-04-02 16:20:16 +02:00
clistate command/workdir: Model the "backend state" file format 2024-03-08 17:21:53 -08:00
e2etest tf query: ready list blocks for beta (#37619) (#37630) 2025-09-17 12:52:39 +02:00
format fix: Avoid crash on test failure in BinaryOpExpr in function call (#37071) 2025-05-16 10:49:31 +00:00
jsonchecks Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
jsonconfig fix: move parsing action reference expressions into terraform (#37458) 2025-08-22 11:23:55 -04:00
jsonformat tf query: ready list blocks for beta (#37619) (#37630) 2025-09-17 12:52:39 +02:00
jsonfunction lang: stabilise templatestring func experiment (#35224) 2024-05-28 16:50:25 +01:00
jsonplan actions: preserve unknown metadata in the json plan (#37611) 2025-09-15 14:21:14 +02:00
jsonprovider tf query: ready list blocks for beta (#37619) (#37630) 2025-09-17 12:52:39 +02:00
jsonstate Apply some new go collection features (#36818) 2025-04-02 16:20:16 +02:00
junit Apply some new go collection features (#36818) 2025-04-02 16:20:16 +02:00
testdata providers lock: include test files when loading configuration (#37904) 2025-11-25 13:17:04 +00:00
testing terraform test: enable deferrals in Terraform Test with the specified flag (#37370) 2025-07-30 11:03:41 +02:00
views Backport of Added missing output for the terraform apply cli actions into v1.14 (#37718) 2025-10-02 10:55:47 -04:00
webbrowser Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
workdir Implement controlling destroy functionality within Terraform Test (#37359) 2025-09-10 17:22:20 +02:00
apply.go remove feature flag from invoke flag 2025-09-16 16:10:53 +02:00
apply_destroy_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
apply_test.go Backport of Allow inconsistent filesystem function results for provider configuration into v1.14 (#37870) 2025-11-05 13:40:15 +01:00
autocomplete.go Clarify usage of BackendOpts, rename field in struct to enable usage with PSS in future (#37085) 2025-07-11 11:08:56 +01:00
autocomplete_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
cli_ui.go adopt hashicorp/cli fork of mitchellh/cli (#34429) 2023-12-20 11:04:10 +00:00
cli_ui_test.go adopt hashicorp/cli fork of mitchellh/cli (#34429) 2023-12-20 11:04:10 +00:00
cloud.go Clarify usage of BackendOpts, rename field in struct to enable usage with PSS in future (#37085) 2025-07-11 11:08:56 +01:00
cloud_test.go PSS: Add alternative, experimental version of init command that downloads providers in two stages (#37350) 2025-08-18 11:20:18 +01:00
command.go Update comments about backend interfaces, enhanced vs operations, and fix copy-paste inaccuracies (#36716) 2025-03-20 16:52:00 +00:00
command_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
console.go Clarify usage of BackendOpts, rename field in struct to enable usage with PSS in future (#37085) 2025-07-11 11:08:56 +01:00
console_interactive.go terraform console: Multi-line entry support 2024-03-13 09:00:02 -07:00
console_interactive_solaris.go adopt hashicorp/cli fork of mitchellh/cli (#34429) 2023-12-20 11:04:10 +00:00
console_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
experimental_test.go Fix experimental gating of PSS feature (#37526) 2025-08-29 14:23:35 +01:00
flag_kv.go move all command args from command/init to args/init 2024-04-17 12:26:23 -04:00
flag_kv_test.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
fmt.go Support tfquery files in terraform fmt (#37347) 2025-07-23 16:52:19 +02:00
fmt_test.go Support tfquery files in terraform fmt (#37347) 2025-07-23 16:52:19 +02:00
get.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
get_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
graph.go Clarify usage of BackendOpts, rename field in struct to enable usage with PSS in future (#37085) 2025-07-11 11:08:56 +01:00
graph_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
helper.go Rebrand Terraform Cloud to HCP Terraform 2024-04-23 16:12:59 -04:00
hook_module_install.go allow slashes in git url parameters 2024-08-09 13:54:13 -04:00
import.go Clarify usage of BackendOpts, rename field in struct to enable usage with PSS in future (#37085) 2025-07-11 11:08:56 +01:00
import_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
init.go PSS: Add alternative, experimental version of init command that downloads providers in two stages (#37350) 2025-08-18 11:20:18 +01:00
init_run.go PSS: Gate experimental logic behind feature flag (#37872) 2025-11-05 10:25:28 +00:00
init_run_experiment.go Update backend.Backend's StateMgr method to return diagnostics instead of primitive errors (#37496) 2025-09-04 11:14:35 +01:00
init_test.go v1.14 backport: backend/http: Refresh state earlier (align with other backends) (#38061) 2026-01-14 16:04:40 +00:00
login.go Rebrand Terraform Cloud to HCP Terraform 2024-04-23 16:12:59 -04:00
login_test.go Rebrand Terraform Cloud to HCP Terraform 2024-04-23 16:12:59 -04:00
logout.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
logout_test.go adopt hashicorp/cli fork of mitchellh/cli (#34429) 2023-12-20 11:04:10 +00:00
meta.go tf query: ready list blocks for beta (#37619) (#37630) 2025-09-17 12:52:39 +02:00
meta_backend.go Update calls to StateMgr method to use diagnostics more conventionally (#37597) 2025-09-15 15:22:58 +01:00
meta_backend_migrate.go v1.14 backport: Fix nil pointer dereference in backend state migration (#38028) (#38058) 2026-01-14 15:20:49 +00:00
meta_backend_migrate_test.go Inject appname to backend migration prompts 2024-04-23 16:12:59 -04:00
meta_backend_test.go Update backend.Backend's StateMgr method to return diagnostics instead of primitive errors (#37496) 2025-09-04 11:14:35 +01:00
meta_config.go tf query: ready list blocks for beta (#37619) (#37630) 2025-09-17 12:52:39 +02:00
meta_dependencies.go PSS: Add alternative, experimental version of init command that downloads providers in two stages (#37350) 2025-08-18 11:20:18 +01:00
meta_dependencies_test.go PSS: Add alternative, experimental version of init command that downloads providers in two stages (#37350) 2025-08-18 11:20:18 +01:00
meta_new.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
meta_providers.go stacks: Don't require built-in providers to be listed under required providers. (#37234) 2025-06-18 17:02:27 +02:00
meta_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
meta_vars.go Update comments about backend interfaces, enhanced vs operations, and fix copy-paste inaccuracies (#36716) 2025-03-20 16:52:00 +00:00
metadata_command.go adopt hashicorp/cli fork of mitchellh/cli (#34429) 2023-12-20 11:04:10 +00:00
metadata_functions.go internal/command: Avoid ignoring ephemeralasnull function (#35651) 2024-09-04 10:25:11 +01:00
metadata_functions_test.go adopt hashicorp/cli fork of mitchellh/cli (#34429) 2023-12-20 11:04:10 +00:00
modules.go Add human view for modules cmd 2024-11-21 12:54:24 -05:00
modules_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
output.go Update backend.Backend's StateMgr method to return diagnostics instead of primitive errors (#37496) 2025-09-04 11:14:35 +01:00
output_test.go Remove handling of ephemeral root outputs (#35809) 2024-10-03 18:10:30 +01:00
plan.go actions: connect invoke flag with TFC (#37544) (#37747) 2025-10-08 21:48:04 +02:00
plan_test.go tf query: ready list blocks for beta (#37619) (#37630) 2025-09-17 12:52:39 +02:00
plugins.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
plugins_lock.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
plugins_lock_test.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
plugins_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
providers.go Update backend.Backend's StateMgr method to return diagnostics instead of primitive errors (#37496) 2025-09-04 11:14:35 +01:00
providers_lock.go providers lock: include test files when loading configuration (#37904) 2025-11-25 13:17:04 +00:00
providers_lock_test.go providers lock: include test files when loading configuration (#37904) 2025-11-25 13:17:04 +00:00
providers_mirror.go update helptext and docs 2024-06-14 16:23:36 -04:00
providers_mirror_test.go adopt hashicorp/cli fork of mitchellh/cli (#34429) 2023-12-20 11:04:10 +00:00
providers_schema.go tf query: ready list blocks for beta (#37619) (#37630) 2025-09-17 12:52:39 +02:00
providers_schema_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
providers_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
push.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
query.go tf query: ready list blocks for beta (#37619) (#37630) 2025-09-17 12:52:39 +02:00
query_test.go update test to not have hardcoded version info 2025-11-19 12:10:46 -05:00
refresh.go Clarify usage of BackendOpts, rename field in struct to enable usage with PSS in future (#37085) 2025-07-11 11:08:56 +01:00
refresh_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
show.go Update backend.Backend's StateMgr method to return diagnostics instead of primitive errors (#37496) 2025-09-04 11:14:35 +01:00
show_test.go actions: remove references to action types, linked resources (#37616) 2025-09-16 08:46:22 -04:00
stacks.go Backport of Handle -help usage in stacks plugin into v1.14 (#37655) 2025-09-24 15:36:40 +02:00
stacks_test.go make hostname and token optional, read token from cli file 2025-05-12 17:10:40 -04:00
state_command.go adopt hashicorp/cli fork of mitchellh/cli (#34429) 2023-12-20 11:04:10 +00:00
state_identities.go Update backend.Backend's StateMgr method to return diagnostics instead of primitive errors (#37496) 2025-09-04 11:14:35 +01:00
state_identities_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
state_list.go Update backend.Backend's StateMgr method to return diagnostics instead of primitive errors (#37496) 2025-09-04 11:14:35 +01:00
state_list_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
state_meta.go Update backend.Backend's StateMgr method to return diagnostics instead of primitive errors (#37496) 2025-09-04 11:14:35 +01:00
state_mv.go Update comments about backend interfaces, enhanced vs operations, and fix copy-paste inaccuracies (#36716) 2025-03-20 16:52:00 +00:00
state_mv_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
state_pull.go Update backend.Backend's StateMgr method to return diagnostics instead of primitive errors (#37496) 2025-09-04 11:14:35 +01:00
state_pull_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
state_push.go Update backend.Backend's StateMgr method to return diagnostics instead of primitive errors (#37496) 2025-09-04 11:14:35 +01:00
state_push_test.go Update backend.Backend's StateMgr method to return diagnostics instead of primitive errors (#37496) 2025-09-04 11:14:35 +01:00
state_replace_provider.go adopt hashicorp/cli fork of mitchellh/cli (#34429) 2023-12-20 11:04:10 +00:00
state_replace_provider_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
state_rm.go Update help output to consistently call out -state and -state-out flags as legacy and related to the local backend. (#37446) 2025-08-14 09:57:43 +01:00
state_rm_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
state_show.go tf query: ready list blocks for beta (#37619) (#37630) 2025-09-17 12:52:39 +02:00
state_show_test.go Replace custom testCwd function with standard testing library (#37335) 2025-07-16 10:41:51 +00:00
state_test.go Replace custom testCwd function with standard testing library (#37335) 2025-07-16 10:41:51 +00:00
taint.go Update backend.Backend's StateMgr method to return diagnostics instead of primitive errors (#37496) 2025-09-04 11:14:35 +01:00
taint_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
telemetry.go add missing copyright headers 2023-08-16 11:21:49 -07:00
test.go Implement controlling destroy functionality within Terraform Test (#37359) 2025-09-10 17:22:20 +02:00
test_cleanup.go Implement controlling destroy functionality within Terraform Test (#37359) 2025-09-10 17:22:20 +02:00
test_test.go Backport of ephemeral fixes into v1.14 (#37850) 2025-11-25 13:16:05 +00:00
ui_input.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
ui_input_test.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
unlock.go Update backend.Backend's StateMgr method to return diagnostics instead of primitive errors (#37496) 2025-09-04 11:14:35 +01:00
unlock_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
untaint.go Update backend.Backend's StateMgr method to return diagnostics instead of primitive errors (#37496) 2025-09-04 11:14:35 +01:00
untaint_test.go Replace custom testCwd function with standard testing library (#37335) 2025-07-16 10:41:51 +00:00
validate.go query: add -query flag to validate command (#37671) (#37707) 2025-10-01 12:26:12 +02:00
validate_test.go query: add -query flag to validate command (#37671) (#37707) 2025-10-01 12:26:12 +02:00
version.go Update URLs from www.terraform.io to developer.hashicorp.com (#36792) 2025-04-01 09:37:12 +01:00
version_test.go Update use of testChdir to standard library's t.Chdir, remove testChdir function from codebase (#37334) 2025-07-16 16:04:10 +01:00
workspace_command.go Make Terraform reject empty strings as invalid workspace names (#37267) 2025-06-26 12:26:58 +01:00
workspace_command_test.go Update backend.Backend's StateMgr method to return diagnostics instead of primitive errors (#37496) 2025-09-04 11:14:35 +01:00
workspace_delete.go Update backend.Backend's StateMgr method to return diagnostics instead of primitive errors (#37496) 2025-09-04 11:14:35 +01:00
workspace_list.go Update backend.Backend interface to return diagnostics from Workspaces and DeleteWorkspace methods (#37430) 2025-08-18 19:03:31 +01:00
workspace_new.go Update backend.Backend's StateMgr method to return diagnostics instead of primitive errors (#37496) 2025-09-04 11:14:35 +01:00
workspace_select.go Update backend.Backend's StateMgr method to return diagnostics instead of primitive errors (#37496) 2025-09-04 11:14:35 +01:00
workspace_show.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00