Daniel Schmidt
e9922645d7
use centralized arguments collection in query
2026-02-18 12:47:12 +01:00
Daniel Schmidt
a5b4ed33d5
use centralized arguments collection in plan
2026-02-18 12:47:12 +01:00
Daniel Schmidt
dc0fee96ef
use centralized arguments collection in apply
2026-02-18 12:47:12 +01:00
Daniel Schmidt
8faccde780
implement centralized variable collection
2026-02-18 12:47:12 +01:00
Daniel Schmidt
026c935961
move UnparsedVariableValue from backendrun to arguments
...
This prevents a cyclic dependency and also makes sense semantically.
The arguments package will collect the unparsed variable values and
the backendrun helpers will work to collect the values and transform
them into terraform.InputValue.
2026-02-18 12:47:12 +01:00
Daniel Schmidt
90eae782bf
move vars handling into own file
2026-02-18 12:47:12 +01:00
Varun Chawla
a5aa6cc5b7
states: fix RootOutputValuesEqual comparing s2 to itself ( #38181 )
...
* states: fix RootOutputValuesEqual comparing s2 to itself
RootOutputValuesEqual had a copy-paste bug where it iterated over
s2.RootOutputValues instead of s.RootOutputValues, effectively
comparing s2 against itself rather than comparing the receiver (s)
against the argument (s2). This meant the function would always
return true as long as both states had the same number of output
values, regardless of whether the actual values differed.
This bug was introduced in #37886 and affects refresh-only plan mode,
where RootOutputValuesEqual is used to determine if root output values
changed during refresh, which controls whether the plan is considered
applyable.
* add changelog entry for RootOutputValuesEqual fix
* Update changelog wording per reviewer suggestion
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 11:15:37 +00:00
Daniel Banck
8ab5ded5b9
Merge pull request #38146 from hashicorp/dbanck/variable-const-attribute
...
Add `const` attribute to variable blocks
2026-02-18 11:37:30 +01:00
Sarah French
817ed318db
chore: Update go version from 1.25 to 1.25.7 ( #38185 )
...
build / Build for windows_amd64 (push) Blocked by required conditions
build / Build for freebsd_arm (push) Blocked by required conditions
build / Build for linux_arm (push) Blocked by required conditions
build / Build for darwin_arm64 (push) Blocked by required conditions
build / Build for linux_arm64 (push) Blocked by required conditions
build / Build for windows_arm64 (push) Blocked by required conditions
build / Build Docker image for linux_386 (push) Blocked by required conditions
build / Build Docker image for linux_amd64 (push) Blocked by required conditions
build / Build Docker image for linux_arm (push) Blocked by required conditions
build / Build Docker image for linux_arm64 (push) Blocked by required conditions
build / Build e2etest for linux_386 (push) Blocked by required conditions
build / Build e2etest for windows_386 (push) Blocked by required conditions
build / Build e2etest for darwin_amd64 (push) Blocked by required conditions
build / Build e2etest for linux_amd64 (push) Blocked by required conditions
build / Build e2etest for windows_amd64 (push) Blocked by required conditions
build / Build e2etest for linux_arm (push) Blocked by required conditions
build / Build e2etest for darwin_arm64 (push) Blocked by required conditions
build / Build e2etest for linux_arm64 (push) Blocked by required conditions
build / Run e2e test for linux_386 (push) Blocked by required conditions
build / Run e2e test for windows_386 (push) Blocked by required conditions
build / Run e2e test for darwin_amd64 (push) Blocked by required conditions
build / Run e2e test for linux_amd64 (push) Blocked by required conditions
build / Run e2e test for windows_amd64 (push) Blocked by required conditions
build / Run e2e test for linux_arm (push) Blocked by required conditions
build / Run e2e test for linux_arm64 (push) Blocked by required conditions
build / Run terraform-exec test for linux amd64 (push) Blocked by required conditions
Quick Checks / Unit Tests (push) Waiting to run
Quick Checks / Race Tests (push) Waiting to run
Quick Checks / End-to-end Tests (push) Waiting to run
Quick Checks / Code Consistency Checks (push) Waiting to run
* chore: Update go version from 1.25 to 1.25.7
* chore: make syncdeps
2026-02-17 17:09:45 +00:00
Daniel Banck
cbc30de3ed
Merge pull request #38186 from hashicorp/modernize-commands-to-use-arguments
...
Refactoring: Modernize various commands to use arguments
2026-02-17 17:19:15 +01:00
Daniel Schmidt
6103cfe834
Merge branch 'main' into modernize-commands-to-use-arguments
2026-02-17 16:43:17 +01:00
Radek Simko
94c0d62368
Add .git-blame-ignore-revs with copyright header commits
2026-02-17 15:18:28 +00:00
Daniel Schmidt
81b328f924
update copyright headers
2026-02-17 15:56:24 +01:00
Daniel Schmidt
d09d5ea60f
remove now unused method
2026-02-17 15:55:45 +01:00
Daniel Schmidt
592d0fe4dd
don't explicitly specify defaults in argument parsing
2026-02-17 15:55:45 +01:00
Daniel Schmidt
5e51b831be
refactor state-replace-provider command argument parsing
2026-02-17 15:55:45 +01:00
Daniel Schmidt
32fb18572d
don't explicitly specify defaults in argument parsing
2026-02-17 15:55:45 +01:00
Daniel Schmidt
89bea5de5b
refactor state-rm command argument parsing
2026-02-17 15:55:45 +01:00
Daniel Schmidt
c66d0d72c1
don't explicitly specify defaults in argument parsing
2026-02-17 15:55:45 +01:00
Daniel Schmidt
442126553b
refactor state-push command argument parsing
2026-02-17 15:55:45 +01:00
Daniel Schmidt
b9f6f14003
don't explicitly specify defaults in argument parsing
2026-02-17 15:55:45 +01:00
Daniel Schmidt
9f3c282096
refactor state-mv command argument parsing
2026-02-17 15:55:45 +01:00
Daniel Schmidt
52bbc57c62
refactor state-pull command argument parsing
2026-02-17 15:55:45 +01:00
Daniel Schmidt
acb6ed3f22
don't explicitly specify defaults in argument parsing
2026-02-17 15:55:45 +01:00
Daniel Schmidt
f7cde006ff
refactor state-show command argument parsing
2026-02-17 15:55:45 +01:00
Daniel Schmidt
da74b59ea1
don't explicitly specify defaults in argument parsing
2026-02-17 15:55:45 +01:00
Daniel Schmidt
3dbfbe5dc9
refactor state-list command argument parsing
2026-02-17 15:55:45 +01:00
Daniel Schmidt
af7783eb62
refactor providers lock command argument parsing
2026-02-17 15:55:45 +01:00
Daniel Schmidt
c7729926fa
don't explicitly specify defaults in argument parsing
2026-02-17 15:55:45 +01:00
Daniel Schmidt
0066780049
refactor providers mirror command argument parsing
2026-02-17 15:55:36 +01:00
Daniel Schmidt
c15f0409ed
don't explicitly specify defaults in argument parsing
2026-02-17 15:55:36 +01:00
Daniel Schmidt
0c384e8cd8
refactor providers schema command argument parsing
2026-02-17 15:55:36 +01:00
Daniel Schmidt
6f32f249f7
refactor providers command argument parsing
2026-02-17 15:55:36 +01:00
Daniel Schmidt
3a2686938f
use the arguments package for import command
2026-02-17 15:55:36 +01:00
Daniel Schmidt
61923826f8
don't explicitly specify defaults in argument parsing
2026-02-17 15:55:36 +01:00
Daniel Schmidt
5a9c0196d9
let command handle defaults
2026-02-17 15:55:36 +01:00
Daniel Schmidt
6b83486498
use the arguments package for taint commands
2026-02-17 15:55:36 +01:00
Radek Simko
492e98ab75
Manually update MPL-2 LICENSE files
build / Build for windows_amd64 (push) Blocked by required conditions
build / Build for freebsd_arm (push) Blocked by required conditions
build / Build for linux_arm (push) Blocked by required conditions
build / Build for darwin_arm64 (push) Blocked by required conditions
build / Build for linux_arm64 (push) Blocked by required conditions
build / Build for windows_arm64 (push) Blocked by required conditions
build / Build Docker image for linux_386 (push) Blocked by required conditions
build / Build Docker image for linux_amd64 (push) Blocked by required conditions
build / Build Docker image for linux_arm (push) Blocked by required conditions
build / Build Docker image for linux_arm64 (push) Blocked by required conditions
build / Build e2etest for linux_386 (push) Blocked by required conditions
build / Build e2etest for windows_386 (push) Blocked by required conditions
build / Build e2etest for darwin_amd64 (push) Blocked by required conditions
build / Build e2etest for linux_amd64 (push) Blocked by required conditions
build / Build e2etest for windows_amd64 (push) Blocked by required conditions
build / Build e2etest for linux_arm (push) Blocked by required conditions
build / Build e2etest for darwin_arm64 (push) Blocked by required conditions
build / Build e2etest for linux_arm64 (push) Blocked by required conditions
build / Run e2e test for linux_386 (push) Blocked by required conditions
build / Run e2e test for windows_386 (push) Blocked by required conditions
build / Run e2e test for darwin_amd64 (push) Blocked by required conditions
build / Run e2e test for linux_amd64 (push) Blocked by required conditions
build / Run e2e test for windows_amd64 (push) Blocked by required conditions
build / Run e2e test for linux_arm (push) Blocked by required conditions
build / Run e2e test for linux_arm64 (push) Blocked by required conditions
build / Run terraform-exec test for linux amd64 (push) Blocked by required conditions
Quick Checks / Unit Tests (push) Waiting to run
Quick Checks / Race Tests (push) Waiting to run
Quick Checks / End-to-end Tests (push) Waiting to run
Quick Checks / Code Consistency Checks (push) Waiting to run
2026-02-17 13:56:34 +00:00
Radek Simko
56c39007e2
make protobuf
2026-02-17 13:56:34 +00:00
Radek Simko
564e8d30ec
providers/mock.go: Remove copyright headers
...
This was probably added accidentally.
The removal aligns with this ignore pattern entry in the .copywrite.hcl config: "**/mock*.go"
2026-02-17 13:56:34 +00:00
Radek Simko
cee1246acc
rpcapi: Manually update copyright in template
2026-02-17 13:56:34 +00:00
Radek Simko
0fe906fa8c
make copyrightfix
2026-02-17 13:56:34 +00:00
Radek Simko
6bd808f7d4
copywrite: Set copyright_year to 2014
...
This aligns with the new meaning of that field, which is the "start year" of copyright, where the end year is implied by the tooling automatically to be the year of last change.
Technically many files did not really exist in 2014 or even later, so neither could the copyright back then but this is just a reflection of blunt (or simple) rules/tools being applied.
2026-02-17 13:56:34 +00:00
Radek Simko
244443b3e0
make syncdeps
2026-02-17 13:56:34 +00:00
Radek Simko
889c90d565
go get -tool github.com/hashicorp/copywrite@v0.25.0
2026-02-17 13:56:34 +00:00
Varun Chawla
9cdf1ad3cd
builtin/terraform: provide empty config schema to avoid spurious ERROR log ( #38183 )
...
* builtin/terraform: provide empty config schema to avoid spurious ERROR log
The builtin terraform provider returned a nil Body in its provider config
schema, which caused AttachSchemaTransformer to emit an ERROR-level log
message ("No provider config schema available for provider[terraform.io/
builtin/terraform]") even though the provider works correctly. This is
confusing for users who filter logs by severity, especially in CI pipelines.
Set the provider config schema to an empty configschema.Block{} so that
AttachSchemaTransformer finds a valid (but empty) schema and skips the
error log. This matches the maintainer's suggested fix in #34207 .
Fixes #34207
* Add changelog entry for builtin provider schema fix
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Remove changelog entry per reviewer feedback
Not an end-user facing change, so no changelog needed.
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 11:47:28 +00:00
Daniel Schmidt
a3dc571150
fix deprecation origin handling
build / Build for windows_amd64 (push) Blocked by required conditions
build / Build for freebsd_arm (push) Blocked by required conditions
build / Build for linux_arm (push) Blocked by required conditions
build / Build for darwin_arm64 (push) Blocked by required conditions
build / Build for linux_arm64 (push) Blocked by required conditions
build / Build for windows_arm64 (push) Blocked by required conditions
build / Build Docker image for linux_386 (push) Blocked by required conditions
build / Build Docker image for linux_amd64 (push) Blocked by required conditions
build / Build Docker image for linux_arm (push) Blocked by required conditions
build / Build Docker image for linux_arm64 (push) Blocked by required conditions
build / Build e2etest for linux_386 (push) Blocked by required conditions
build / Build e2etest for windows_386 (push) Blocked by required conditions
build / Build e2etest for darwin_amd64 (push) Blocked by required conditions
build / Build e2etest for linux_amd64 (push) Blocked by required conditions
build / Build e2etest for windows_amd64 (push) Blocked by required conditions
build / Build e2etest for linux_arm (push) Blocked by required conditions
build / Build e2etest for darwin_arm64 (push) Blocked by required conditions
build / Build e2etest for linux_arm64 (push) Blocked by required conditions
build / Run e2e test for linux_386 (push) Blocked by required conditions
build / Run e2e test for windows_386 (push) Blocked by required conditions
build / Run e2e test for darwin_amd64 (push) Blocked by required conditions
build / Run e2e test for linux_amd64 (push) Blocked by required conditions
build / Run e2e test for windows_amd64 (push) Blocked by required conditions
build / Run e2e test for linux_arm (push) Blocked by required conditions
build / Run e2e test for linux_arm64 (push) Blocked by required conditions
build / Run terraform-exec test for linux amd64 (push) Blocked by required conditions
Quick Checks / Unit Tests (push) Waiting to run
Quick Checks / Race Tests (push) Waiting to run
Quick Checks / End-to-end Tests (push) Waiting to run
Quick Checks / Code Consistency Checks (push) Waiting to run
2026-02-16 13:52:52 +01:00
Daniel Schmidt
6f828ea344
add clarifying comment
2026-02-16 13:52:52 +01:00
Daniel Schmidt
ad3837f37a
add testing helper that checks diagnostic extra infos
2026-02-16 13:52:52 +01:00
Sarah French
c7da02b4a8
feat: Enable validate command to validate state_store blocks. ( #38157 )
2026-02-16 10:09:26 +00:00