Commit Graph

2165 Commits

Author SHA1 Message Date
AYM1607
3545d0fbf3 Update logging wording.
Signed-off-by: AYM1607 <u.g.a.mariano@gmail.com>
2024-11-06 11:10:52 -08:00
AYM1607
8de4488443 Strip "v" prefix from constraints when parsing by apparentlymart/go-versions fails.
Signed-off-by: AYM1607 <u.g.a.mariano@gmail.com>
2024-11-06 11:10:52 -08:00
AYM1607
c3cb9c0485 Revert back to the previous implementation.
Signed-off-by: AYM1607 <u.g.a.mariano@gmail.com>
2024-11-06 11:10:52 -08:00
AYM1607
03c6700fd2 Add prerelease test with multiple constraints.
Signed-off-by: AYM1607 <u.g.a.mariano@gmail.com>
2024-11-06 11:10:52 -08:00
AYM1607
08ad2f5983 Use the hashicorp/go-version for handling pre-release version constraints during module installation. Adds more tests.
Signed-off-by: AYM1607 <u.g.a.mariano@gmail.com>
2024-11-06 11:10:52 -08:00
AYM1607
6a5c1a2f42 adds tests for module prerelease version constraints with a v prefix
Signed-off-by: AYM1607 <u.g.a.mariano@gmail.com>
2024-11-06 11:10:52 -08:00
Christian Mesh
fd775f0fe3
Implement Provider for_each (#2105)
Signed-off-by: ollevche <ollevche@gmail.com>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Signed-off-by: Ronny Orot <ronny.orot@gmail.com>
Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
Co-authored-by: ollevche <ollevche@gmail.com>
Co-authored-by: Ronny Orot <ronny.orot@gmail.com>
Co-authored-by: Martin Atkins <mart@degeneration.co.uk>
2024-11-05 18:08:23 -05:00
Arel Rabinowitz
3d4bf29c56
Add exclude flag support (#1900)
Signed-off-by: RLRabinowitz <rlrabinowitz2@gmail.com>
2024-11-05 10:16:00 -05:00
Christian Mesh
e802b23200
Partial revert of #1911, support provider for_each in aliases (#2121)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-11-05 06:19:52 -05:00
Christian Mesh
1155a3f711
Partially unknown provider functions arguments fixed (#2127)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-11-04 14:23:53 -05:00
Martin Atkins
6707ef6ca3
Fix regression of backend reinit detection when backend schema has required arguments (#2119)
Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2024-11-04 14:23:32 -05:00
Ioannis Polyzos
79a2bb3c47
CopyDir cmd code refactoring suggestions (#2070)
Signed-off-by: Ioannis Polyzos <git@ipolyzos.com>
Co-authored-by: AbstractionFactory <179820029+abstractionfactory@users.noreply.github.com>
2024-11-04 21:21:06 +02:00
AbstractionFactory
9d842aa920
Fixes #1605: Customizable metadata key on encryption key providers (#2080)
Signed-off-by: AbstractionFactory <179820029+abstractionfactory@users.noreply.github.com>
2024-10-30 19:52:23 +01:00
boaz0
810df00376
Fix exit command in console interactive mode (#2086)
Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>
2024-10-29 12:13:44 +02:00
jinjiadu
384dc4cb93
chore: fix some function names (#2108)
Signed-off-by: jinjiadu <jinjiadu@aliyun.com>
2024-10-29 12:07:10 +02:00
Christian Mesh
e3a6bcab96
Fix provider functions in child modules (#2082)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-10-23 10:42:38 -04:00
James Humphries
c9541d81b6
Fallback to reading the x-terraform-get header if the module registry returns an empty json body (#2079)
Signed-off-by: James Humphries <james@james-humphries.co.uk>
2024-10-23 15:33:56 +01:00
James Humphries
ce6f727755
Ensure config generation does not crash when importing sensitive values (#2077)
Signed-off-by: James Humphries <james@james-humphries.co.uk>
2024-10-23 15:32:48 +01:00
MS99-9
9c379c0dc0
[REFACTORING] Add description to the schemas used by tofu test #894 (#2029)
Signed-off-by: Ioannis Polyzos <git@ipolyzos.com>
Signed-off-by: Mohamed Medhat Mohamed Ibrahim Shalaby <mohamed.shalaby@tum.de>
Signed-off-by: AbstractionFactory <179820029+abstractionfactory@users.noreply.github.com>
Signed-off-by: Yousif Akbar <11247449+yhakbar@users.noreply.github.com>
Co-authored-by: Ioannis Polyzos <git@ipolyzos.com>
Co-authored-by: AbstractionFactory <179820029+abstractionfactory@users.noreply.github.com>
Co-authored-by: Mohamed Medhat Mohamed Ibrahim Shalaby <mohamed.shalaby@tum.de>
Co-authored-by: Yousif Akbar <11247449+yhakbar@users.noreply.github.com>
2024-10-21 11:00:33 +02:00
Christian Mesh
7cacb9f066
Fix function refs in variable validation (#2052)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-10-17 12:37:54 -04:00
Christian Mesh
d36220e44c
Cleanup and encode existing "bugs" in ProviderTransformer (#2069)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-10-16 08:44:40 -04:00
Andy Hayes
7215ee2ed8
Adds warning if tests don't provide valid variable (#2057)
Signed-off-by: Andrew Hayes <andrew.hayes@harness.io>
2024-10-15 09:20:11 +01:00
Martin Atkins
8b0b5b271b command/init: Support static eval for backend config migration check
The "backendConfigNeedsMigration" helper evaluates the backend
configuration inline to compare it with the object previously saved in the
.terraform/terraform.tfstate file.

However, this wasn't updated to use the new "static eval" functionality
and so was treating any references to variables or function calls as
invalid, causing a spurious "backend configuration changed" error when
re-initializing the working directory with identical backend configuration
settings.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2024-10-09 09:27:11 -07:00
Andy Hayes
de69070b02
Adds prompt for missing static variables (#2047)
Signed-off-by: Andrew Hayes <andrew.hayes@harness.io>
2024-10-07 18:30:42 +01:00
Christian Mesh
0d1e6cd5f0
Handle static variable secret flag (#2045)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-10-03 10:46:58 -04:00
Martin Atkins
8638b815dc
moduledeps: Remove this dead code entirely (#2042)
Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2024-10-02 16:45:31 -04:00
Christian Mesh
c8633519b9
Make sure test vars are only processed during test commands (#2039)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-10-02 14:11:42 -04:00
Will Yardley
00e17ff51c
test: use regex for expected value in TestUiHookPreApply_periodicTimer (#2035)
Signed-off-by: William Yardley <wyardley@users.noreply.github.com>
2024-10-02 13:16:40 +03:00
Ioannis Polyzos
0cc4301cd5
Add test cases for GetCommand to cover invalid args scenarios (#1940)
Signed-off-by: Ioannis Polyzos <git@ipolyzos.com>
2024-09-27 10:22:47 -04:00
Andy Hayes
20187d859f
Prevents providers mirror from crashing with bad lock file (#1985)
Signed-off-by: Andrew Hayes <andrew.hayes@harness.io>
2024-09-25 09:01:17 -04:00
Oleksandr Levchenkov
485be411c0
remove unused arg in test runner start (#2019)
Signed-off-by: ollevche <ollevche@gmail.com>
2024-09-25 09:00:13 -04:00
Arunim Chaudhary
d33ccba2d2
Fix debug logging doesn't show module name (#2009)
Signed-off-by: Arunim Chaudhary <arunim.chaudhary@stackguardian.io>
2024-09-23 08:00:51 -04:00
Christian Mesh
12ed264597
Warning and Error consolidation CLI options (#1894)
Signed-off-by: Hefeweizen <jmales@gmail.com>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Signed-off-by: Syasusu <syasusu@163.com>
Co-authored-by: Hefeweizen <jmales@gmail.com>
Co-authored-by: Syasusu <syasusu@163.com>
2024-09-23 07:31:06 -04:00
Alexandru Trendler
48abc52e46
bug: add error handling for missing state lock config in S3, HTTP and OSS backends (#1977)
Signed-off-by: g0dfl3sh <alex1trendler@gmail.com>
Signed-off-by: Alexandru Trendler <117138249+g0dfl3sh@users.noreply.github.com>
Co-authored-by: Oleksandr Levchenkov <ollevche@gmail.com>
2024-09-20 18:29:36 +02:00
Christian Mesh
53130fa487
Fix inverted entries in provider error message (#1991)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-09-18 11:11:15 -04:00
Oleksandr Levchenkov
d896e939f0
fix config generation with optional empty sensitive string (#1986)
Signed-off-by: ollevche <ollevche@gmail.com>
2024-09-18 11:10:56 -04:00
Burak Şen
854c49e04b
Fix all unknown block not outputted (#1948)
Signed-off-by: buraksenn <buraksenb@gmail.com>
2024-09-17 09:49:33 -04:00
Burak Şen
2091c96984
Fix setops not used in block set renderer (#1950)
Signed-off-by: buraksenn <buraksenb@gmail.com>
2024-09-17 09:36:35 -04:00
Viktor Szépe
bb63574f09
Fix typos (#1954)
Signed-off-by: Viktor Szépe <viktor@szepe.net>
2024-09-17 12:04:30 +02:00
dropbigfish
c068a70a9f
chore: fix some function names (#1957)
Signed-off-by: dropbigfish <fillfish@foxmail.com>
2024-09-16 13:36:15 -04:00
Nathan Baulch
9b7bec31b4
Another batch of minor typos (#1953)
Signed-off-by: Nathan Baulch <nathan.baulch@gmail.com>
2024-09-09 07:51:39 -04:00
Andy Hayes
389f33fdc5
300/provider foreach (#1911)
Signed-off-by: Andrew Hayes <andrew.hayes@harness.io>
2024-09-06 14:33:05 +01:00
Burak Şen
7a02fad996
Fix repetitive diagnosis output in init response (#1890)
Signed-off-by: buraksenn <buraksenb@gmail.com>
2024-09-05 07:36:18 -04:00
Nathan Baulch
ea558d9d4b
Fix typos (#1905)
Signed-off-by: Nathan Baulch <nathan.baulch@gmail.com>
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
Co-authored-by: Christian Mesh <christianmesh1@gmail.com>
2024-08-29 13:20:33 -04:00
Christian Mesh
ffeded20a4
Better handling of key_provider references (#1921)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-08-29 10:32:01 -04:00
Christian Mesh
3c45c30249
Move varhcl (body variable inspection) into hcl fork (#1919)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-08-23 10:01:07 -04:00
Ronny Orot
23d69e2351
Cloud Backend - Fix logic that forces TF_WORKSPACE to be equal to a tag name (#1930)
Signed-off-by: Ronny Orot <ronny.orot@gmail.com>
2024-08-22 10:55:50 +03:00
Christian Mesh
6f01428333
Fix missing module source panic (#1888)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-08-05 12:12:32 -04:00
Christian Mesh
ed612a35ac
Fix extra file generated in tests of #1554 (#1880)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-08-02 07:33:13 -04:00
Christian Mesh
ce24a6b961
Better var file type detection (#1881)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
2024-08-02 07:29:40 -04:00