Skip to content

Commit cb4e876

Browse files
aknyshclaudeautofix-ci[bot]
authored
Add OpenTofu 1.8+ module source interpolation support (#1756)
* updates * docs: Complete OpenTofu module source interpolation documentation Updated PRD to reflect completed implementation: - Changed status from Draft to ✅ Implemented - Updated documentation section with comprehensive additions - Removed blog post requirement from success criteria Added comprehensive documentation to opentofu.mdx: - New "OpenTofu 1.8+ Module Source Interpolation" section (135 lines) - Automatic support explanation with zero-configuration approach - Complete code examples showing variable interpolation - Auto-detection implementation details (fast/slow path, caching) - Supported command patterns - Requirements and migration guide - Troubleshooting steps with debug logging Cleaned up test file: - Removed placeholder test stubs (replaced by actual tests in terraform_detection_test.go) Implementation complete with: - 67+ unit tests passing - 3 integration tests passing - 0 linter issues - Full user documentation Closes #1753 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * [autofix.ci] apply automated fixes * fix: Respect component-level command overrides for OpenTofu detection The OpenTofu detection logic now correctly handles component-level command overrides. Previously, when a stack overrode the command per-component (e.g., `command: "tofu"` on a specific component), the validation logic would only check the global `atmosConfig.Components .Terraform.Command`, missing the component-specific override stored in `configAndStacksInfo.Command`. This caused OpenTofu-specific syntax (like module source variable interpolation) to fail validation for components that relied on per-component command overrides, even though those components were configured to use OpenTofu. The fix clones the atmosConfig and applies the component-level command override before checking if OpenTofu is being used, ensuring the effective command (override when present, global default otherwise) is used for OpenTofu detection. This maintains cache behavior while allowing per-component overrides to trigger the OpenTofu fallback correctly. Addresses CodeRabbit AI review feedback. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * test: Vendor bower schema locally to eliminate external dependency The TestCliValidateSchema test was failing intermittently due to external dependency on https://json.schemastore.org/bower.json, which frequently returns HTTP 503 or times out. Changes: - Added local copy of bower.json schema to test fixture - Updated atmos.yaml to use local schema file instead of remote URL - Added comment documenting the original schema source Benefits: - Tests no longer fail when schemastore.org is unavailable - Faster test execution (0.18s vs 30s timeout) - Works offline - Deterministic and reliable for CI/CD The test still validates the same functionality (loading schemas from file paths), and the schema name "schemaFromInternet" accurately describes the feature being tested, not the current implementation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * updates * updates * update PRD --------- Co-authored-by: Claude <[email protected]> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent b246b4e commit cb4e876

File tree

14 files changed

+1795
-38
lines changed

14 files changed

+1795
-38
lines changed

NOTICE

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ APACHE 2.0 LICENSED DEPENDENCIES
119119

120120
- github.com/aws/aws-sdk-go-v2/feature/s3/manager
121121
License: Apache-2.0
122-
URL: https://github.com/aws/aws-sdk-go-v2/blob/feature/s3/manager/v1.20.3/feature/s3/manager/LICENSE.txt
122+
URL: https://github.com/aws/aws-sdk-go-v2/blob/feature/s3/manager/v1.20.4/feature/s3/manager/LICENSE.txt
123123

124124
- github.com/aws/aws-sdk-go-v2/internal/configsources
125125
License: Apache-2.0
@@ -155,7 +155,7 @@ APACHE 2.0 LICENSED DEPENDENCIES
155155

156156
- github.com/aws/aws-sdk-go-v2/service/s3
157157
License: Apache-2.0
158-
URL: https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.89.2/service/s3/LICENSE.txt
158+
URL: https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.90.0/service/s3/LICENSE.txt
159159

160160
- github.com/aws/aws-sdk-go-v2/service/secretsmanager
161161
License: Apache-2.0
@@ -343,15 +343,15 @@ APACHE 2.0 LICENSED DEPENDENCIES
343343

344344
- github.com/open-policy-agent/opa
345345
License: Apache-2.0
346-
URL: https://github.com/open-policy-agent/opa/blob/v1.10.0/LICENSE
346+
URL: https://github.com/open-policy-agent/opa/blob/v1.10.1/LICENSE
347347

348348
- github.com/open-policy-agent/opa/internal/gojsonschema
349349
License: Apache-2.0
350-
URL: https://github.com/open-policy-agent/opa/blob/v1.10.0/internal/gojsonschema/LICENSE-APACHE-2.0.txt
350+
URL: https://github.com/open-policy-agent/opa/blob/v1.10.1/internal/gojsonschema/LICENSE-APACHE-2.0.txt
351351

352352
- github.com/open-policy-agent/opa/internal/semver
353353
License: Apache-2.0
354-
URL: https://github.com/open-policy-agent/opa/blob/v1.10.0/internal/semver/LICENSE
354+
URL: https://github.com/open-policy-agent/opa/blob/v1.10.1/internal/semver/LICENSE
355355

356356
- github.com/opencontainers/go-digest
357357
License: Apache-2.0
@@ -483,7 +483,7 @@ APACHE 2.0 LICENSED DEPENDENCIES
483483

484484
- google.golang.org/genproto/googleapis/rpc
485485
License: Apache-2.0
486-
URL: https://github.com/googleapis/go-genproto/blob/3a174f9686a8/googleapis/rpc/LICENSE
486+
URL: https://github.com/googleapis/go-genproto/blob/ab9386a59fda/googleapis/rpc/LICENSE
487487

488488
- google.golang.org/grpc
489489
License: Apache-2.0
@@ -664,7 +664,7 @@ BSD LICENSED DEPENDENCIES
664664

665665
- github.com/open-policy-agent/opa/internal/edittree/bitvector
666666
License: BSD-3-Clause
667-
URL: https://github.com/open-policy-agent/opa/blob/v1.10.0/internal/edittree/bitvector/license.txt
667+
URL: https://github.com/open-policy-agent/opa/blob/v1.10.1/internal/edittree/bitvector/license.txt
668668

669669
- github.com/pierrec/lz4/v4
670670
License: BSD-3-Clause
@@ -760,11 +760,11 @@ BSD LICENSED DEPENDENCIES
760760

761761
- google.golang.org/api
762762
License: BSD-3-Clause
763-
URL: https://github.com/googleapis/google-api-go-client/blob/v0.254.0/LICENSE
763+
URL: https://github.com/googleapis/google-api-go-client/blob/v0.255.0/LICENSE
764764

765765
- google.golang.org/api/internal/third_party/uritemplates
766766
License: BSD-3-Clause
767-
URL: https://github.com/googleapis/google-api-go-client/blob/v0.254.0/internal/third_party/uritemplates/LICENSE
767+
URL: https://github.com/googleapis/google-api-go-client/blob/v0.255.0/internal/third_party/uritemplates/LICENSE
768768

769769
- google.golang.org/protobuf
770770
License: BSD-3-Clause

0 commit comments

Comments
 (0)