Skip to content

Add OpenTofu 1.8+ module source interpolation support - #1756

Merged
Andriy Knysh (aknysh) merged 11 commits into
mainfrom
fix-cli-vars
Nov 6, 2025
Merged

Andriy Knysh (aknysh) merged 11 commits into
mainfrom
fix-cli-vars

Conversation

@aknysh

@aknysh Andriy Knysh (aknysh) commented Nov 6, 2025 •

Copy link
Copy Markdown
Member

what

  • Added automatic OpenTofu 1.8+ module source interpolation support
  • Implemented two-tier OpenTofu detection (fast path: basename check, slow path: version command)
  • Added intelligent validation skipping for OpenTofu-specific features
  • Created comprehensive test suite with 67+ unit tests and 3 integration tests
  • Added complete user documentation for OpenTofu 1.8+ features
  • Fixed linter warnings by creating named constant for repeated string literal

why

  • Users with OpenTofu 1.8+ were unable to use module source variable interpolation (source = "${var.context.build.module_path}") because Atmos's terraform-config-inspect validation rejected it before any OpenTofu commands could execute
  • The validation library uses Terraform's HCL parser which doesn't support OpenTofu-specific syntax
  • Zero-configuration solution ensures users don't need manual workarounds or special flags
  • Automatic detection respects user's configured command (when using command: "tofu")
  • Enables dynamic module loading based on runtime configuration

references

Summary by CodeRabbit

Release Notes

  • New Features

    • Automatic OpenTofu 1.8+ module source interpolation support enabled with zero-configuration requirements
    • Validation errors for known OpenTofu-specific patterns are automatically skipped
    • Full backward compatibility maintained for Terraform users
  • Documentation

    • Added comprehensive guide for OpenTofu 1.8+ module source interpolation support
    • Included configuration examples, migration notes, and troubleshooting guidance
  • Chores

    • Updated dependencies

Andriy Knysh (aknysh) and others added 2 commits November 5, 2025 21:10
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]>
@aknysh Andriy Knysh (aknysh) added the patch A minor, backward compatible change label Nov 6, 2025
@aknysh
Andriy Knysh (aknysh) requested review from a team as code owners November 6, 2025 02:27
@aknysh Andriy Knysh (aknysh) added the patch A minor, backward compatible change label Nov 6, 2025
@github-actions github-actions Bot added the size/xl Extra large size PR label Nov 6, 2025
@mergify

mergify Bot commented Nov 6, 2025

Copy link
Copy Markdown
Contributor

Warning

This PR exceeds the recommended limit of 1,000 lines.

Large PRs are difficult to review and may be rejected due to their size.

Please verify that this PR does not address multiple issues.
Consider refactoring it into smaller, more focused PRs to facilitate a smoother review process.

@github-actions

github-actions Bot commented Nov 6, 2025 •

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails
gomod/github.com/aws/aws-sdk-go-v2/feature/s3/manager 1.20.4 🟢 6.9
Details
CheckScoreReason
Code-Review⚠️ 1Found 4/30 approved changesets -- score normalized to 1
Maintained🟢 1030 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
Packaging⚠️ -1packaging workflow not detected
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Token-Permissions🟢 9detected GitHub workflow tokens with excessive permissions
License🟢 10license file detected
Signed-Releases⚠️ -1no releases found
Security-Policy🟢 10security policy file detected
Branch-Protection⚠️ -1internal error: error during branchesHandler.setup: internal error: some github tokens can't read classic branch protection rules: https://github.com/ossf/scorecard-action/blob/main/docs/authentication/fine-grained-auth-token.md
Fuzzing⚠️ 0project is not fuzzed
SAST🟢 10SAST tool is run on all commits
Vulnerabilities🟢 82 existing vulnerabilities detected
Binary-Artifacts🟢 9binaries present in source code
Pinned-Dependencies⚠️ 0dependency not pinned by hash detected -- score normalized to 0
gomod/github.com/aws/aws-sdk-go-v2/service/s3 1.90.0 🟢 6.9
Details
CheckScoreReason
Code-Review⚠️ 1Found 4/30 approved changesets -- score normalized to 1
Maintained🟢 1030 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
Packaging⚠️ -1packaging workflow not detected
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Token-Permissions🟢 9detected GitHub workflow tokens with excessive permissions
License🟢 10license file detected
Signed-Releases⚠️ -1no releases found
Security-Policy🟢 10security policy file detected
Branch-Protection⚠️ -1internal error: error during branchesHandler.setup: internal error: some github tokens can't read classic branch protection rules: https://github.com/ossf/scorecard-action/blob/main/docs/authentication/fine-grained-auth-token.md
Fuzzing⚠️ 0project is not fuzzed
SAST🟢 10SAST tool is run on all commits
Vulnerabilities🟢 82 existing vulnerabilities detected
Binary-Artifacts🟢 9binaries present in source code
Pinned-Dependencies⚠️ 0dependency not pinned by hash detected -- score normalized to 0
gomod/github.com/open-policy-agent/opa 1.10.1 🟢 8.6
Details
CheckScoreReason
Maintained🟢 1030 commit(s) and 17 issue activity found in the last 90 days -- score normalized to 10
Dependency-Update-Tool🟢 10update tool detected
Code-Review🟢 9Found 25/27 approved changesets -- score normalized to 9
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Security-Policy🟢 9security policy file detected
Token-Permissions🟢 10GitHub workflow tokens follow principle of least privilege
Packaging⚠️ -1packaging workflow not detected
Binary-Artifacts🟢 9binaries present in source code
CII-Best-Practices🟢 5badge detected: Passing
Pinned-Dependencies🟢 8dependency not pinned by hash detected -- score normalized to 8
Vulnerabilities🟢 100 existing vulnerabilities detected
SAST🟢 7SAST tool detected but not run on all commits
License🟢 10license file detected
Fuzzing🟢 10project is fuzzed
Branch-Protection⚠️ -1internal error: error during branchesHandler.setup: internal error: some github tokens can't read classic branch protection rules: https://github.com/ossf/scorecard-action/blob/main/docs/authentication/fine-grained-auth-token.md
Signed-Releases⚠️ 0Project has not signed or included provenance with any releases.
CI-Tests🟢 1029 out of 29 merged PRs checked by a CI test -- score normalized to 10
Contributors🟢 10project has 30 contributing companies or organizations
gomod/google.golang.org/api 0.255.0 🟢 7.5
Details
CheckScoreReason
Code-Review🟢 10all changesets reviewed
Packaging⚠️ -1packaging workflow not detected
Maintained🟢 1030 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Security-Policy🟢 10security policy file detected
Dangerous-Workflow⚠️ -1no workflows found
Token-Permissions⚠️ -1No tokens found
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
Fuzzing⚠️ 0project is not fuzzed
License🟢 10license file detected
Branch-Protection⚠️ -1internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration
Signed-Releases⚠️ -1no releases found
Binary-Artifacts🟢 10no binaries found in the repo
Vulnerabilities🟢 100 existing vulnerabilities detected
SAST⚠️ 0SAST tool is not run on all commits -- score normalized to 0
Pinned-Dependencies⚠️ -1no dependencies found
gomod/google.golang.org/genproto/googleapis/rpc 0.0.0-20251029180050-ab9386a59fda 🟢 6.5
Details
CheckScoreReason
Code-Review🟢 10all changesets reviewed
Maintained🟢 1016 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Security-Policy🟢 10security policy file detected
Packaging⚠️ -1packaging workflow not detected
Token-Permissions⚠️ 0detected GitHub workflow tokens with excessive permissions
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
Fuzzing⚠️ 0project is not fuzzed
License🟢 10license file detected
Binary-Artifacts🟢 10no binaries found in the repo
Signed-Releases⚠️ -1no releases found
Branch-Protection⚠️ -1internal error: error during branchesHandler.setup: internal error: some github tokens can't read classic branch protection rules: https://github.com/ossf/scorecard-action/blob/main/docs/authentication/fine-grained-auth-token.md
Pinned-Dependencies⚠️ 0dependency not pinned by hash detected -- score normalized to 0
Vulnerabilities🟢 91 existing vulnerabilities detected
SAST⚠️ 1SAST tool is not run on all commits -- score normalized to 1

Scanned Files

  • go.mod

@coderabbitai

coderabbitai Bot commented Nov 6, 2025 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

This PR implements automatic OpenTofu 1.8+ module source interpolation support via a two-tier detection approach (fast basename check, slow version-command check with caching), pattern-based validation skipping for known OpenTofu features, and comprehensive test fixtures. It also updates dependency versions in go.mod.

Changes

Cohort / File(s) Summary
Dependency Updates
go.mod
AWS SDK v2 (s3/manager, service/s3), OPA, Google API, and genproto RPC versions incremented to reflect newer releases.
OpenTofu Detection Logic
internal/exec/terraform_detection.go
New file implementing IsOpenTofu() public function with dual-path detection: fast basename check and slow version-command check (5s timeout) with RWMutex-protected caching. Includes detectByVersionCommand(), cacheDetectionResult(), and isKnownOpenTofuFeature() helpers.
Detection Tests
internal/exec/terraform_detection_test.go
Comprehensive test suite covering fast-path, slow-path, caching, concurrency, pattern matching for known OpenTofu features, and benchmarks.
Validation Integration
internal/exec/utils.go
Adds TerraformConfigKey constant, OpenTofu-aware error handling in Terraform component processing, detection integration to skip validation for known OpenTofu features, and validation_skipped_opentofu flag in componentInfo.
Feature Tests
internal/exec/opentofu_module_source_interpolation_test.go
New tests validating ExecuteDescribeComponent handles OpenTofu syntax with nested/flat variables, varfile generation, and validation skipping behavior.
Test Fixtures
tests/fixtures/scenarios/opentofu-module-source-interpolation/atmos.yaml, README.md, components/terraform/test-component/main.tf, components/terraform/test-component/modules/example/main.tf, stacks/test-stack.yaml
Complete OpenTofu scenario with atmos config (command: "tofu"), test component using module source interpolation, nested variables, and fixture documentation.
User Documentation
website/docs/core-concepts/projects/configuration/opentofu.mdx
New OpenTofu 1.8+ module source interpolation section with HCL/YAML examples, detection/validation behavior, and troubleshooting guidance.
PRD Documentation
docs/prd/opentofu-module-source-interpolation.md
Comprehensive product requirements document detailing problem statement, solution approach (detection strategy, pattern matching), integration points, core implementation files, zero-configuration requirements, testing strategy, and backward compatibility.

Sequence Diagram(s)

sequenceDiagram
    autonumber
    participant User
    participant Atmos
    participant Detection as Detection<br/>(Fast/Slow)
    participant Exec as Terraform<br/>Execution
    participant Validation as Validation<br/>Logic

    User->>Atmos: Execute terraform command (tofu variant)
    Atmos->>Detection: IsOpenTofu(config)
    
    rect rgb(200, 220, 255)
        Note over Detection: Fast Path
        Detection->>Detection: Check basename for "tofu"
        alt Found in basename
            Detection-->>Atmos: true (cached)
        else Not found
            rect rgb(220, 200, 255)
                Note over Detection: Slow Path
                Detection->>Detection: Run version command<br/>(5s timeout)
                Detection->>Detection: Parse for "OpenTofu"
                Detection->>Detection: Cache result
            end
            Detection-->>Atmos: true/false (cached)
        end
    end
    
    Atmos->>Exec: Execute with detected runner
    Exec->>Validation: Validate module
    
    alt OpenTofu feature detected
        rect rgb(220, 255, 200)
            Note over Validation: Pattern Matching
            Validation->>Validation: isKnownOpenTofuFeature(err)
            alt Known pattern (e.g., module<br/>source interpolation)
                Validation->>Validation: Mark validation_skipped_opentofu
                Validation->>Exec: Skip validation, proceed
            else Unknown pattern
                Validation->>Exec: Return error
            end
        end
    else Terraform detected
        Validation->>Exec: Normal validation flow
    end
    
    Exec-->>User: Command result
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

  • terraform_detection.go: New concurrent caching with RWMutex, timeout handling, and dual-path detection requires careful validation of thread safety and edge cases.
  • utils.go: Dense error-handling logic with OpenTofu awareness, caching integration, and validation-skip conditions needs thorough step-through of all code paths and error scenarios.
  • Pattern matching: The isKnownOpenTofuFeature() logic should be validated against actual OpenTofu error patterns and potential false positives.
  • Integration points: Cross-file dependencies between detection logic and validation flow warrant careful review of control flow.

Suggested labels

minor

Suggested reviewers

  • osterman
  • milldr

Pre-merge checks and finishing touches

✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: adding OpenTofu 1.8+ module source interpolation support, which is the core objective of the changeset.
Linked Issues check ✅ Passed The PR fully addresses issue #1753 by implementing OpenTofu detection, restoring var file passing to tofu, and enabling module source interpolation with variables.
Out of Scope Changes check ✅ Passed All changes directly support OpenTofu 1.8+ module source interpolation: detection logic, validation skipping, tests, fixtures, documentation, and dependency updates for related tools.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix-cli-vars

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (2)
tests/fixtures/scenarios/opentofu-module-source-interpolation/README.md (1)

1-152: LGTM - comprehensive test fixture documentation.

The README thoroughly documents the test scenario, problem statement, solution, and expected behavior. This will be valuable for future maintainers.

Optional: Consider wrapping the bare URLs at lines 150-151 in markdown link syntax for consistency:

docs/prd/opentofu-module-source-interpolation.md (1)

1-555: LGTM - excellent comprehensive PRD.

This PRD thoroughly documents the OpenTofu module source interpolation feature, including problem statement, solution approach, implementation details, testing strategy, and success criteria. The documentation will serve as a valuable reference for future development and maintenance.

Optional formatting improvements for better readability:

  1. Add language specifiers to fenced code blocks (lines 15, 84, 235, 416) for syntax highlighting:

    -```
    +```text
  2. The static analysis hints about typographic quotes and missing periods after abbreviations are cosmetic - feel free to address them if you'd like to polish the document further, but they don't affect clarity.

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 072a31f and b0444ad.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (13)
  • NOTICE (6 hunks)
  • docs/prd/opentofu-module-source-interpolation.md (1 hunks)
  • go.mod (4 hunks)
  • internal/exec/opentofu_module_source_interpolation_test.go (1 hunks)
  • internal/exec/terraform_detection.go (1 hunks)
  • internal/exec/terraform_detection_test.go (1 hunks)
  • internal/exec/utils.go (2 hunks)
  • tests/fixtures/scenarios/opentofu-module-source-interpolation/README.md (1 hunks)
  • tests/fixtures/scenarios/opentofu-module-source-interpolation/atmos.yaml (1 hunks)
  • tests/fixtures/scenarios/opentofu-module-source-interpolation/components/terraform/test-component/main.tf (1 hunks)
  • tests/fixtures/scenarios/opentofu-module-source-interpolation/components/terraform/test-component/modules/example/main.tf (1 hunks)
  • tests/fixtures/scenarios/opentofu-module-source-interpolation/stacks/test-stack.yaml (1 hunks)
  • website/docs/core-concepts/projects/configuration/opentofu.mdx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (5)
website/**

📄 CodeRabbit inference engine (.cursor/rules/atmos-rules.mdc)

website/**: Update website documentation in website/ when adding features
Ensure consistency between CLI help text and website documentation
Follow the website's documentation structure and style
Keep website code in website/ and follow its architecture/style; test changes locally
Keep CLI and website documentation in sync; document new features with examples and use cases

Files:

  • website/docs/core-concepts/projects/configuration/opentofu.mdx
go.{mod,sum}

📄 CodeRabbit inference engine (.cursor/rules/atmos-rules.mdc)

go.{mod,sum}: Manage dependencies with Go modules
Keep dependencies up to date

Files:

  • go.mod
**/*.go

📄 CodeRabbit inference engine (.cursor/rules/atmos-rules.mdc)

**/*.go: All code must pass golangci-lint checks
Follow Go error handling idioms and use meaningful error messages
Wrap errors with context using fmt.Errorf("context: %w", err)
Consider custom error types for domain-specific errors
Follow standard Go coding style; run gofmt and goimports
Use snake_case for environment variables
Document complex logic with inline comments

Files:

  • internal/exec/terraform_detection.go
  • internal/exec/terraform_detection_test.go
  • internal/exec/opentofu_module_source_interpolation_test.go
  • internal/exec/utils.go
**/!(*_test).go

📄 CodeRabbit inference engine (.cursor/rules/atmos-rules.mdc)

Document all exported functions, types, and methods with Go doc comments

Files:

  • internal/exec/terraform_detection.go
  • internal/exec/utils.go
**/*_test.go

📄 CodeRabbit inference engine (.cursor/rules/atmos-rules.mdc)

**/*_test.go: Every new feature must include comprehensive unit tests
Test both happy paths and error conditions
Use table-driven tests for multiple scenarios

Files:

  • internal/exec/terraform_detection_test.go
  • internal/exec/opentofu_module_source_interpolation_test.go
🧠 Learnings (42)
📓 Common learnings
Learnt from: osterman
Repo: cloudposse/atmos PR: 1599
File: internal/exec/terraform.go:394-402
Timestamp: 2025-10-10T23:51:36.597Z
Learning: In Atmos (internal/exec/terraform.go), when adding OpenTofu-specific flags like `--var-file` for `init`, do not gate them based on command name (e.g., checking if `info.Command == "tofu"` or `info.Command == "opentofu"`) because command names don't reliably indicate the actual binary being executed (symlinks, aliases). Instead, document the OpenTofu requirement in code comments and documentation, trusting users who enable the feature (e.g., `PassVars`) to ensure their terraform command points to an OpenTofu binary.
Learnt from: aknysh
Repo: cloudposse/atmos PR: 944
File: go.mod:206-206
Timestamp: 2025-01-17T00:18:57.769Z
Learning: For indirect dependencies with license compliance issues in the cloudposse/atmos repository, the team prefers to handle them in follow-up PRs rather than blocking the current changes, as these issues often require deeper investigation of the dependency tree.
Learnt from: Listener430
Repo: cloudposse/atmos PR: 934
File: tests/fixtures/scenarios/docs-generate/README.md.gotmpl:99-118
Timestamp: 2025-01-25T03:51:57.689Z
Learning: For the cloudposse/atmos repository, changes to template contents should be handled in dedicated PRs and are typically considered out of scope for PRs focused on other objectives.
📚 Learning: 2025-03-18T12:26:25.329Z
Learnt from: Listener430
Repo: cloudposse/atmos PR: 1149
File: tests/snapshots/TestCLICommands_atmos_vendor_pull_ssh.stderr.golden:7-7
Timestamp: 2025-03-18T12:26:25.329Z
Learning: In the Atmos project, typos or inconsistencies in test snapshot files (such as "terrafrom" instead of "terraform") may be intentional as they capture the exact output of commands and should not be flagged as issues requiring correction.

Applied to files:

  • tests/fixtures/scenarios/opentofu-module-source-interpolation/README.md
  • tests/fixtures/scenarios/opentofu-module-source-interpolation/atmos.yaml
  • docs/prd/opentofu-module-source-interpolation.md
📚 Learning: 2025-01-25T03:44:52.619Z
Learnt from: Listener430
Repo: cloudposse/atmos PR: 934
File: tests/fixtures/scenarios/docs-generate/README.md:14-23
Timestamp: 2025-01-25T03:44:52.619Z
Learning: Test fixtures under `tests/fixtures/` should not be modified unless the test case itself needs to change, as they are deliberately set up to represent specific scenarios for testing purposes.

Applied to files:

  • tests/fixtures/scenarios/opentofu-module-source-interpolation/README.md
📚 Learning: 2025-10-10T23:51:36.597Z
Learnt from: osterman
Repo: cloudposse/atmos PR: 1599
File: internal/exec/terraform.go:394-402
Timestamp: 2025-10-10T23:51:36.597Z
Learning: In Atmos (internal/exec/terraform.go), when adding OpenTofu-specific flags like `--var-file` for `init`, do not gate them based on command name (e.g., checking if `info.Command == "tofu"` or `info.Command == "opentofu"`) because command names don't reliably indicate the actual binary being executed (symlinks, aliases). Instead, document the OpenTofu requirement in code comments and documentation, trusting users who enable the feature (e.g., `PassVars`) to ensure their terraform command points to an OpenTofu binary.

Applied to files:

  • tests/fixtures/scenarios/opentofu-module-source-interpolation/README.md
  • website/docs/core-concepts/projects/configuration/opentofu.mdx
  • tests/fixtures/scenarios/opentofu-module-source-interpolation/atmos.yaml
  • internal/exec/terraform_detection.go
  • internal/exec/terraform_detection_test.go
  • tests/fixtures/scenarios/opentofu-module-source-interpolation/components/terraform/test-component/main.tf
  • docs/prd/opentofu-module-source-interpolation.md
  • internal/exec/opentofu_module_source_interpolation_test.go
  • internal/exec/utils.go
  • tests/fixtures/scenarios/opentofu-module-source-interpolation/stacks/test-stack.yaml
📚 Learning: 2024-12-01T00:33:20.298Z
Learnt from: aknysh
Repo: cloudposse/atmos PR: 810
File: examples/tests/stacks/catalog/terraform/template-functions-test2/defaults.yaml:28-32
Timestamp: 2024-12-01T00:33:20.298Z
Learning: In `examples/tests/stacks/catalog/terraform/template-functions-test2/defaults.yaml`, `!exec atmos terraform output` is used in examples to demonstrate its usage, even though `!terraform.output` is the recommended approach according to the documentation.

Applied to files:

  • tests/fixtures/scenarios/opentofu-module-source-interpolation/README.md
  • tests/fixtures/scenarios/opentofu-module-source-interpolation/atmos.yaml
  • tests/fixtures/scenarios/opentofu-module-source-interpolation/components/terraform/test-component/main.tf
  • internal/exec/opentofu_module_source_interpolation_test.go
  • tests/fixtures/scenarios/opentofu-module-source-interpolation/components/terraform/test-component/modules/example/main.tf
  • tests/fixtures/scenarios/opentofu-module-source-interpolation/stacks/test-stack.yaml
📚 Learning: 2024-11-25T17:17:15.703Z
Learnt from: RoseSecurity
Repo: cloudposse/atmos PR: 797
File: pkg/list/atmos.yaml:213-214
Timestamp: 2024-11-25T17:17:15.703Z
Learning: The file `pkg/list/atmos.yaml` is primarily intended for testing purposes.

Applied to files:

  • tests/fixtures/scenarios/opentofu-module-source-interpolation/atmos.yaml
📚 Learning: 2025-09-10T21:17:55.273Z
Learnt from: samtholiya
Repo: cloudposse/atmos PR: 1466
File: toolchain/http_client_test.go:3-10
Timestamp: 2025-09-10T21:17:55.273Z
Learning: In the cloudposse/atmos repository, imports should never be changed as per samtholiya's coding guidelines.

Applied to files:

  • tests/fixtures/scenarios/opentofu-module-source-interpolation/atmos.yaml
📚 Learning: 2025-01-25T03:51:57.689Z
Learnt from: Listener430
Repo: cloudposse/atmos PR: 934
File: tests/fixtures/scenarios/docs-generate/README.md.gotmpl:99-118
Timestamp: 2025-01-25T03:51:57.689Z
Learning: For the cloudposse/atmos repository, changes to template contents should be handled in dedicated PRs and are typically considered out of scope for PRs focused on other objectives.

Applied to files:

  • tests/fixtures/scenarios/opentofu-module-source-interpolation/atmos.yaml
📚 Learning: 2024-12-12T15:17:45.245Z
Learnt from: osterman
Repo: cloudposse/atmos PR: 808
File: examples/demo-atmos.d/atmos.d/tools/helmfile.yml:10-10
Timestamp: 2024-12-12T15:17:45.245Z
Learning: In `examples/demo-atmos.d/atmos.d/tools/helmfile.yml`, when suggesting changes to `kubeconfig_path`, ensure that the values use valid Go template syntax.

Applied to files:

  • tests/fixtures/scenarios/opentofu-module-source-interpolation/atmos.yaml
📚 Learning: 2025-01-25T15:21:40.413Z
Learnt from: osterman
Repo: cloudposse/atmos PR: 808
File: examples/demo-atmos-cli-imports/atmos.yaml:8-8
Timestamp: 2025-01-25T15:21:40.413Z
Learning: In Atmos, when a directory is specified for configuration loading (e.g., in the `import` section of atmos.yaml), all files within that directory should be treated as Atmos configurations. Do not suggest restricting file extensions in directory-based glob patterns.

Applied to files:

  • tests/fixtures/scenarios/opentofu-module-source-interpolation/atmos.yaml
📚 Learning: 2025-09-24T20:45:40.401Z
Learnt from: Benbentwo
Repo: cloudposse/atmos PR: 1475
File: tests/fixtures/scenarios/atmos-auth/stacks/deploy/nonprod.yaml:3-4
Timestamp: 2025-09-24T20:45:40.401Z
Learning: In Atmos stack files, the correct syntax for importing other stack files is `import:` (singular), not `imports:` (plural). All stack files in the Atmos codebase consistently use `import:` followed by a list of paths to import.

Applied to files:

  • tests/fixtures/scenarios/opentofu-module-source-interpolation/atmos.yaml
📚 Learning: 2025-09-08T01:25:44.958Z
Learnt from: osterman
Repo: cloudposse/atmos PR: 1466
File: website/docs/cli/commands/toolchain/usage.mdx:117-121
Timestamp: 2025-09-08T01:25:44.958Z
Learning: The atmos toolchain has been updated to follow XDG Base Directory Specification with helper functions GetXDGCacheDir() and GetXDGTempCacheDir() in toolchain/xdg_cache.go, using XDG_CACHE_HOME when set and falling back to ~/.cache/atmos-toolchain, making it consistent with atmos core's XDG compliance.

Applied to files:

  • tests/fixtures/scenarios/opentofu-module-source-interpolation/atmos.yaml
📚 Learning: 2025-09-23T02:30:42.362Z
Learnt from: CR
Repo: cloudposse/atmos PR: 0
File: .cursor/rules/atmos-rules.mdc:0-0
Timestamp: 2025-09-23T02:30:42.362Z
Learning: Applies to go.{mod,sum} : Keep dependencies up to date

Applied to files:

  • go.mod
📚 Learning: 2025-09-23T02:30:42.362Z
Learnt from: CR
Repo: cloudposse/atmos PR: 0
File: .cursor/rules/atmos-rules.mdc:0-0
Timestamp: 2025-09-23T02:30:42.362Z
Learning: Applies to go.{mod,sum} : Manage dependencies with Go modules

Applied to files:

  • go.mod
📚 Learning: 2025-07-05T20:59:02.914Z
Learnt from: aknysh
Repo: cloudposse/atmos PR: 1363
File: internal/exec/template_utils.go:18-18
Timestamp: 2025-07-05T20:59:02.914Z
Learning: In the Atmos project, gomplate v4 is imported with a blank import (`_ "github.com/hairyhenderson/gomplate/v4"`) alongside v3 imports to resolve AWS SDK version conflicts. V3 uses older AWS SDK versions that conflict with newer AWS modules used by Atmos. A full migration to v4 requires extensive refactoring due to API changes and should be handled in a separate PR.

Applied to files:

  • go.mod
📚 Learning: 2025-10-11T04:03:41.651Z
Learnt from: aknysh
Repo: cloudposse/atmos PR: 1611
File: go.mod:3-3
Timestamp: 2025-10-11T04:03:41.651Z
Learning: The Go module "go" directive supports three-part version numbers (e.g., "go 1.24.8") since Go 1.21+. The format "go 1.N.P" is valid and recommended for specifying patch versions. Earlier Go versions only accepted major.minor format, but modern tooling fully supports the patch component.

Applied to files:

  • go.mod
📚 Learning: 2025-01-17T00:21:32.987Z
Learnt from: aknysh
Repo: cloudposse/atmos PR: 944
File: go.mod:3-3
Timestamp: 2025-01-17T00:21:32.987Z
Learning: Go version 1.23.0 was deliberately introduced by the maintainer (aknysh) in January 2025. While this might be a pre-release or development version of Go, it has been approved for use in this project.

Applied to files:

  • go.mod
📚 Learning: 2025-01-17T00:21:32.987Z
Learnt from: aknysh
Repo: cloudposse/atmos PR: 944
File: go.mod:3-3
Timestamp: 2025-01-17T00:21:32.987Z
Learning: The project uses Go version 1.23.0 which has been confirmed by the maintainer to be working in production for months. Do not flag this as an invalid Go version.

Applied to files:

  • go.mod
📚 Learning: 2025-02-14T16:16:36.328Z
Learnt from: mcalhoun
Repo: cloudposse/atmos PR: 1034
File: go.mod:3-3
Timestamp: 2025-02-14T16:16:36.328Z
Learning: Go 1.23.5 was released on January 16, 2025, and is a valid Go version. Always verify Go version information with official sources before suggesting version changes.

Applied to files:

  • go.mod
📚 Learning: 2025-10-02T19:17:51.630Z
Learnt from: osterman
Repo: cloudposse/atmos PR: 1504
File: pkg/profiler/profiler.go:20-31
Timestamp: 2025-10-02T19:17:51.630Z
Learning: In pkg/profiler/profiler.go, profiler-specific errors (ErrUnsupportedProfileType, ErrStartCPUProfile, ErrStartTraceProfile, ErrCreateProfileFile) must remain local and cannot be moved to errors/errors.go due to an import cycle: pkg/profiler → errors → pkg/schema → pkg/profiler. This is a valid exception to the centralized errors policy.

Applied to files:

  • go.mod
📚 Learning: 2025-11-01T20:24:29.557Z
Learnt from: osterman
Repo: cloudposse/atmos PR: 1714
File: NOTICE:0-0
Timestamp: 2025-11-01T20:24:29.557Z
Learning: In the cloudposse/atmos repository, the NOTICE file is programmatically generated and should not be manually edited. Issues with dependency license URLs in NOTICE will be resolved when upstream package metadata is corrected.

Applied to files:

  • NOTICE
📚 Learning: 2025-09-25T01:02:48.697Z
Learnt from: Benbentwo
Repo: cloudposse/atmos PR: 1475
File: pkg/auth/manager.go:304-312
Timestamp: 2025-09-25T01:02:48.697Z
Learning: The auth manager in pkg/auth/manager.go should remain cloud-agnostic and not contain AWS-specific logic or references to specific cloud providers. Keep the manager generic and extensible.

Applied to files:

  • NOTICE
📚 Learning: 2024-10-27T04:41:49.199Z
Learnt from: haitham911
Repo: cloudposse/atmos PR: 727
File: internal/exec/terraform_clean.go:215-223
Timestamp: 2024-10-27T04:41:49.199Z
Learning: In `internal/exec/terraform_clean.go`, the function `determineCleanPath` is necessary and should not be removed.

Applied to files:

  • internal/exec/terraform_detection.go
  • internal/exec/terraform_detection_test.go
📚 Learning: 2025-10-11T19:11:58.965Z
Learnt from: osterman
Repo: cloudposse/atmos PR: 1599
File: internal/exec/terraform.go:0-0
Timestamp: 2025-10-11T19:11:58.965Z
Learning: For terraform apply interactivity checks in Atmos (internal/exec/terraform.go), use stdin TTY detection (e.g., `IsTTYSupportForStdin()` or checking `os.Stdin`) to determine if user prompts are possible. This is distinct from stdout/stderr TTY checks used for output display (like TUI rendering). User input requires stdin to be a TTY; output display requires stdout/stderr to be a TTY.

Applied to files:

  • internal/exec/terraform_detection.go
📚 Learning: 2025-06-23T02:14:30.937Z
Learnt from: aknysh
Repo: cloudposse/atmos PR: 1327
File: cmd/terraform.go:111-117
Timestamp: 2025-06-23T02:14:30.937Z
Learning: In cmd/terraform.go, flags for the DescribeAffected function are added dynamically at runtime when info.Affected is true. This is intentional to avoid exposing internal flags like "file", "format", "verbose", "include-spacelift-admin-stacks", "include-settings", and "upload" in the terraform command interface, while still providing them for the shared DescribeAffected function used by both `atmos describe affected` and `atmos terraform apply --affected`.

Applied to files:

  • internal/exec/terraform_detection.go
📚 Learning: 2024-11-02T15:35:09.958Z
Learnt from: aknysh
Repo: cloudposse/atmos PR: 759
File: internal/exec/terraform.go:366-368
Timestamp: 2024-11-02T15:35:09.958Z
Learning: In `internal/exec/terraform.go`, the workspace cleaning code under both the general execution path and within the `case "init":` block is intentionally duplicated because the code execution paths are different. The `.terraform/environment` file should be deleted before executing `terraform init` in both scenarios to ensure a clean state.

Applied to files:

  • internal/exec/terraform_detection.go
  • internal/exec/terraform_detection_test.go
📚 Learning: 2024-10-31T19:25:41.298Z
Learnt from: osterman
Repo: cloudposse/atmos PR: 727
File: internal/exec/terraform_clean.go:233-235
Timestamp: 2024-10-31T19:25:41.298Z
Learning: When specifying color values in functions like `confirmDeleteTerraformLocal` in `internal/exec/terraform_clean.go`, avoid hardcoding color values. Instead, use predefined color constants or allow customization through configuration settings to improve accessibility and user experience across different terminals and themes.

Applied to files:

  • internal/exec/terraform_detection.go
  • internal/exec/terraform_detection_test.go
  • internal/exec/utils.go
📚 Learning: 2025-01-09T22:37:01.004Z
Learnt from: samtholiya
Repo: cloudposse/atmos PR: 914
File: cmd/terraform_commands.go:260-265
Timestamp: 2025-01-09T22:37:01.004Z
Learning: In the terraform commands implementation (cmd/terraform_commands.go), the direct use of `os.Args[2:]` for argument handling is intentionally preserved to avoid extensive refactoring. While it could be improved to use cobra's argument parsing, such changes should be handled in a dedicated PR to maintain focus and minimize risk.

Applied to files:

  • internal/exec/terraform_detection.go
📚 Learning: 2024-12-07T16:19:01.683Z
Learnt from: aknysh
Repo: cloudposse/atmos PR: 825
File: internal/exec/terraform.go:30-30
Timestamp: 2024-12-07T16:19:01.683Z
Learning: In `internal/exec/terraform.go`, skipping stack validation when help flags are present is not necessary.

Applied to files:

  • internal/exec/terraform_detection.go
📚 Learning: 2025-10-03T18:02:08.535Z
Learnt from: Benbentwo
Repo: cloudposse/atmos PR: 1475
File: internal/exec/terraform.go:269-272
Timestamp: 2025-10-03T18:02:08.535Z
Learning: In internal/exec/terraform.go, when auth.TerraformPreHook fails, the error is logged but execution continues. This is a deliberate design choice to allow Terraform commands to proceed even if authentication setup fails, rather than failing fast.

Applied to files:

  • internal/exec/terraform_detection.go
📚 Learning: 2025-04-26T15:54:10.506Z
Learnt from: haitham911
Repo: cloudposse/atmos PR: 1195
File: internal/exec/terraform_clean.go:99-99
Timestamp: 2025-04-26T15:54:10.506Z
Learning: The error variable `ErrRelPath` is defined in `internal/exec/terraform_clean_util.go` and is used across files in the `exec` package, including in `terraform_clean.go`. This is part of an approach to standardize error handling in the codebase.

Applied to files:

  • internal/exec/terraform_detection.go
  • internal/exec/utils.go
📚 Learning: 2024-10-23T21:36:40.262Z
Learnt from: osterman
Repo: cloudposse/atmos PR: 740
File: cmd/cmd_utils.go:340-359
Timestamp: 2024-10-23T21:36:40.262Z
Learning: In the Go codebase for Atmos, when reviewing functions like `checkAtmosConfig` in `cmd/cmd_utils.go`, avoid suggesting refactoring to return errors instead of calling `os.Exit` if such changes would significantly increase the scope due to the need to update multiple call sites.

Applied to files:

  • internal/exec/terraform_detection.go
📚 Learning: 2025-09-23T02:30:42.362Z
Learnt from: CR
Repo: cloudposse/atmos PR: 0
File: .cursor/rules/atmos-rules.mdc:0-0
Timestamp: 2025-09-23T02:30:42.362Z
Learning: Applies to **/*_test.go : Every new feature must include comprehensive unit tests

Applied to files:

  • internal/exec/terraform_detection_test.go
  • internal/exec/opentofu_module_source_interpolation_test.go
📚 Learning: 2025-03-25T12:23:42.649Z
Learnt from: Listener430
Repo: cloudposse/atmos PR: 1149
File: internal/exec/go_getter_utils.go:104-104
Timestamp: 2025-03-25T12:23:42.649Z
Learning: Listener430 plans to add a test for verifying that token injection is skipped for unsupported hosts in a future review or refactoring iteration. This relates to the CustomGitDetector.Detect method in internal/exec/go_getter_utils.go.

Applied to files:

  • internal/exec/terraform_detection_test.go
📚 Learning: 2025-09-23T02:30:42.362Z
Learnt from: CR
Repo: cloudposse/atmos PR: 0
File: .cursor/rules/atmos-rules.mdc:0-0
Timestamp: 2025-09-23T02:30:42.362Z
Learning: Applies to **/*_test.go : Use table-driven tests for multiple scenarios

Applied to files:

  • internal/exec/terraform_detection_test.go
  • internal/exec/opentofu_module_source_interpolation_test.go
📚 Learning: 2025-09-23T02:30:42.362Z
Learnt from: CR
Repo: cloudposse/atmos PR: 0
File: .cursor/rules/atmos-rules.mdc:0-0
Timestamp: 2025-09-23T02:30:42.362Z
Learning: Applies to **/*_test.go : Test both happy paths and error conditions

Applied to files:

  • internal/exec/terraform_detection_test.go
  • internal/exec/opentofu_module_source_interpolation_test.go
📚 Learning: 2025-01-17T00:18:57.769Z
Learnt from: aknysh
Repo: cloudposse/atmos PR: 944
File: go.mod:206-206
Timestamp: 2025-01-17T00:18:57.769Z
Learning: For indirect dependencies with license compliance issues in the cloudposse/atmos repository, the team prefers to handle them in follow-up PRs rather than blocking the current changes, as these issues often require deeper investigation of the dependency tree.

Applied to files:

  • docs/prd/opentofu-module-source-interpolation.md
📚 Learning: 2025-05-23T19:51:47.091Z
Learnt from: samtholiya
Repo: cloudposse/atmos PR: 1255
File: cmd/describe_affected_test.go:15-15
Timestamp: 2025-05-23T19:51:47.091Z
Learning: The atmos codebase has a custom extension to *testing.T that provides a Chdir method, allowing test functions to call t.Chdir() to change working directories during tests. This is used consistently across test files in the codebase.

Applied to files:

  • internal/exec/opentofu_module_source_interpolation_test.go
📚 Learning: 2024-11-12T03:16:02.910Z
Learnt from: aknysh
Repo: cloudposse/atmos PR: 775
File: internal/exec/template_funcs_component.go:157-159
Timestamp: 2024-11-12T03:16:02.910Z
Learning: In the Go code for `componentFunc` in `internal/exec/template_funcs_component.go`, the function `cleanTerraformWorkspace` does not return errors, and it's acceptable if the file does not exist. Therefore, error handling for `cleanTerraformWorkspace` is not needed.

Applied to files:

  • internal/exec/opentofu_module_source_interpolation_test.go
  • internal/exec/utils.go
📚 Learning: 2025-05-23T19:51:47.091Z
Learnt from: samtholiya
Repo: cloudposse/atmos PR: 1255
File: cmd/describe_affected_test.go:15-15
Timestamp: 2025-05-23T19:51:47.091Z
Learning: In the atmos codebase, t.Chdir() is a valid method call on *testing.T objects and works correctly for changing directories in tests. This is implemented through custom testing framework extensions and is used consistently throughout the test suite.

Applied to files:

  • internal/exec/opentofu_module_source_interpolation_test.go
📚 Learning: 2025-08-15T14:43:41.030Z
Learnt from: aknysh
Repo: cloudposse/atmos PR: 1352
File: pkg/store/artifactory_store_test.go:108-113
Timestamp: 2025-08-15T14:43:41.030Z
Learning: In test files for the atmos project, it's acceptable to ignore errors from os.Setenv/Unsetenv operations during test environment setup and teardown, as these are controlled test scenarios.

Applied to files:

  • internal/exec/opentofu_module_source_interpolation_test.go
📚 Learning: 2025-09-29T02:20:11.636Z
Learnt from: aknysh
Repo: cloudposse/atmos PR: 1540
File: internal/exec/validate_component.go:117-118
Timestamp: 2025-09-29T02:20:11.636Z
Learning: The ValidateComponent function in internal/exec/validate_component.go had its componentSection parameter type refined from `any` to `map[string]any` without adding new parameters. This is a type safety improvement, not a signature change requiring call site updates.

Applied to files:

  • internal/exec/utils.go
🧬 Code graph analysis (4)
internal/exec/terraform_detection.go (3)
pkg/schema/schema.go (4)
  • AtmosConfiguration (27-65)
  • Components (374-384)
  • Terraform (334-346)
  • Logs (421-424)
pkg/perf/perf.go (1)
  • Track (121-138)
pkg/logger/log.go (3)
  • Level (203-203)
  • Debug (24-26)
  • Warn (44-46)
internal/exec/terraform_detection_test.go (2)
pkg/schema/schema.go (3)
  • AtmosConfiguration (27-65)
  • Components (374-384)
  • Terraform (334-346)
internal/exec/terraform_detection.go (1)
  • IsOpenTofu (29-62)
internal/exec/opentofu_module_source_interpolation_test.go (1)
internal/exec/describe_component.go (1)
  • ExecuteDescribeComponentParams (202-209)
internal/exec/utils.go (3)
internal/exec/terraform_detection.go (1)
  • IsOpenTofu (29-62)
errors/errors.go (1)
  • ErrFailedToLoadTerraformModule (154-154)
pkg/logger/log.go (1)
  • Debug (24-26)
🪛 Checkov (3.2.334)
tests/fixtures/scenarios/opentofu-module-source-interpolation/components/terraform/test-component/main.tf

[medium] 29-33: Ensure Terraform module sources use a commit hash

(CKV_TF_1)


[high] 29-33: Ensure Terraform module sources use a tag with a version number

(CKV_TF_2)

🪛 LanguageTool
tests/fixtures/scenarios/opentofu-module-source-interpolation/README.md

[typographical] ~22-~22: Consider using typographic quotation marks here.
Context: ...the configured command is OpenTofu (via command: "tofu" or any path containing "tofu") and ski...

(EN_QUOTES)


[typographical] ~23-~23: Consider using typographic quotation marks here.
Context: ...command: "tofu"` or any path containing "tofu") and skips validation errors for known ...

(EN_QUOTES)


[typographical] ~35-~35: Consider using typographic quotation marks here.
Context: ...figuration (atmos.yaml) - Configures command: "tofu" to use OpenTofu - Enables `init.pass_v...

(EN_QUOTES)


[typographical] ~96-~96: Consider using typographic quotation marks here.
Context: ...ast Path Detection**: Basename contains "tofu" 2. Slow Path Detection: Execute ver...

(EN_QUOTES)


[typographical] ~132-~132: Consider using typographic quotation marks here.
Context: ...orm/tofu commands execute 4. Users with command: "tofu" couldn't use OpenTofu-specific feature...

(EN_QUOTES)


[typographical] ~138-~138: Consider using typographic quotation marks here.
Context: ...: Check if executable basename contains "tofu" (e.g., /usr/bin/tofu, `/opt/homebrew/...

(EN_QUOTES)


[typographical] ~139-~139: Consider using a typographic opening quote here.
Context: ... version` and check output for "OpenTofu" 3. Caching: Results cached...

(EN_QUOTES)


[typographical] ~139-~139: Consider using a typographic close quote here.
Context: ... version` and check output for "OpenTofu" 3. Caching: Results cached by comma...

(EN_QUOTES)

website/docs/core-concepts/projects/configuration/opentofu.mdx

[typographical] ~179-~179: Consider using typographic quotation marks here.
Context: ...(by checking if your command contains "tofu" or by executing the version command) an...

(EN_QUOTES)


[typographical] ~215-~215: Consider using typographic quotation marks here.
Context: ... ### How It Works When you configurecommand: "tofu"in youratmos.yaml`, Atmos: 1. **Aut...

(EN_QUOTES)


[typographical] ~218-~218: Consider using typographic quotation marks here.
Context: ...cks if the executable basename contains "tofu" - Slow path: Executes `...

(EN_QUOTES)


[typographical] ~219-~219: Consider using a typographic opening quote here.
Context: ...utes <command> version and checks for "OpenTofu" - Caches results for pe...

(EN_QUOTES)


[typographical] ~219-~219: Consider using a typographic close quote here.
Context: ...mmand> version` and checks for "OpenTofu" - Caches results for performance...

(EN_QUOTES)


[typographical] ~279-~279: Consider using typographic quotation marks here.
Context: ...detection handles it automatically when command: "tofu" is configured. ### Troubleshooting I...

(EN_QUOTES)

docs/prd/opentofu-module-source-interpolation.md

[typographical] ~47-~47: In American English, use a period after an abbreviation.
Context: ...e` configuration option. ### Terraform vs OpenTofu Important: This feature i...

(MISSING_PERIOD_AFTER_ABBREVIATION)


[typographical] ~223-~223: Consider using typographic quotation marks here.
Context: ...* Check if executable basename contains "tofu" (e.g., /usr/bin/tofu, `/opt/homebrew/...

(EN_QUOTES)


[typographical] ~224-~224: Consider using a typographic opening quote here.
Context: ... version` and check output for "OpenTofu" - Caching: Results cach...

(EN_QUOTES)


[typographical] ~224-~224: Consider using a typographic close quote here.
Context: ... version` and check output for "OpenTofu" - Caching: Results cached by com...

(EN_QUOTES)


[typographical] ~228-~228: Consider using a typographic opening quote here.
Context: ...or known OpenTofu-specific errors: - "Variables not allowed" - Module source i...

(EN_QUOTES)


[typographical] ~228-~228: Consider using a typographic close quote here.
Context: ...ific errors: - "Variables not allowed" - Module source interpolation (OpenTofu...

(EN_QUOTES)


[typographical] ~231-~231: Consider using typographic quotation marks here.
Context: ...figuration Required** - Just works when command: "tofu" is configured **Implementation Files:...

(EN_QUOTES)


[typographical] ~341-~341: Consider using typographic quotation marks here.
Context: ...y command path that either: 1. Contains "tofu" in the basename (case-insensitive), OR ...

(EN_QUOTES)


[typographical] ~342-~342: Consider using a typographic opening quote here.
Context: ...ename (case-insensitive), OR 2. Returns "OpenTofu" when executing ` vers...

(EN_QUOTES)


[typographical] ~342-~342: Consider using a typographic close quote here.
Context: ...se-insensitive), OR 2. Returns "OpenTofu" when executing <command> version ## ...

(EN_QUOTES)


[typographical] ~456-~456: Consider using a typographic opening quote here.
Context: ...fu.mdx` Added comprehensive section on "OpenTofu 1.8+ Module Source Interpolatio...

(EN_QUOTES)


[typographical] ~456-~456: Consider using a typographic close quote here.
Context: ...penTofu 1.8+ Module Source Interpolation" including: - ✅ Automatic support explan...

(EN_QUOTES)


[typographical] ~523-~523: In American English, use a period after an abbreviation.
Context: ...entation Decisions 1. Auto-detection vs Configuration? - ✅ Decision: A...

(MISSING_PERIOD_AFTER_ABBREVIATION)


[typographical] ~527-~527: In American English, use a period after an abbreviation.
Context: ...ly, no breaking changes 2. Fast path vs Slow path? - ✅ Decision: Two-t...

(MISSING_PERIOD_AFTER_ABBREVIATION)


[typographical] ~531-~531: In American English, use a period after an abbreviation.
Context: ...ndles edge cases 3. Pattern matching vs Lenient mode? - ✅ Decision: Pa...

(MISSING_PERIOD_AFTER_ABBREVIATION)


[grammar] ~536-~536: Use a hyphen to join words.
Context: ...tion skips?** - ✅ Decision: Debug level logging only - Rationale: A...

(QB_NEW_EN_HYPHEN)


[typographical] ~540-~540: Consider using a typographic opening quote here.
Context: ...Current:** Module source interpolation ("Variables not allowed") - Future:...

(EN_QUOTES)


[typographical] ~540-~540: Consider using a typographic close quote here.
Context: ...ce interpolation ("Variables not allowed") - Future: Pattern list is exten...

(EN_QUOTES)

🪛 markdownlint-cli2 (0.18.1)
tests/fixtures/scenarios/opentofu-module-source-interpolation/README.md

150-150: Bare URL used

(MD034, no-bare-urls)


151-151: Bare URL used

(MD034, no-bare-urls)

docs/prd/opentofu-module-source-interpolation.md

15-15: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


84-84: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


235-235: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


416-416: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
  • GitHub Check: Build (windows)
  • GitHub Check: Build (linux)
  • GitHub Check: Lint (golangci)
  • GitHub Check: Analyze (go)
  • GitHub Check: website-deploy-preview
  • GitHub Check: autofix
  • GitHub Check: Review Dependency Licenses
  • GitHub Check: Summary
🔇 Additional comments (7)
go.mod (2)

25-26: LGTM - routine dependency updates.

The minor version bumps for AWS SDK, OPA, and Google API dependencies are appropriate maintenance updates that support the broader PR objectives.

Also applies to: 76-76, 99-99, 396-396


3-3: Go 1.25.0 is a valid released version of Go. The latest stable Go release as of November 6, 2025 is go1.25.3 (released October 13, 2025), which means Go 1.25.0 was released well before the review comment was generated. The code using go 1.25.0 is not an error or intentional deviation—it's simply an older patch version within the same minor release. No changes needed.

Likely an incorrect or invalid review comment.

NOTICE (1)

122-122: LGTM - programmatic license URL updates.

The license URL updates correctly reflect the dependency version changes from go.mod. These are expected automated updates.

Also applies to: 158-158, 346-346, 350-350, 354-354, 486-486, 763-763, 767-767

tests/fixtures/scenarios/opentofu-module-source-interpolation/atmos.yaml (1)

1-21: LGTM - well-structured test fixture.

The configuration properly sets up the OpenTofu scenario with command: "tofu" and init.pass_vars: true, which are the key settings for testing module source interpolation. The fixture is clean and minimal.

website/docs/core-concepts/projects/configuration/opentofu.mdx (1)

173-306: LGTM - excellent user-facing documentation.

The new section clearly explains OpenTofu 1.8+ module source interpolation with practical examples, requirements, and troubleshooting guidance. The documentation follows a logical flow and provides exactly what users need to understand and use this feature.

tests/fixtures/scenarios/opentofu-module-source-interpolation/stacks/test-stack.yaml (1)

1-17: LGTM - appropriate test data structure.

The stack fixture correctly sets up nested variables under context.build to exercise OpenTofu 1.8+ module source interpolation, alongside flat variables for comparison. This structure directly tests the scenario described in issue #1753.

tests/fixtures/scenarios/opentofu-module-source-interpolation/components/terraform/test-component/modules/example/main.tf (1)

1-9: LGTM - appropriate test module.

This minimal test module serves its purpose well - it accepts an input and produces an output to verify that OpenTofu can successfully load modules using variable interpolation in the source path.

Comment thread internal/exec/utils.go Resolved
Andriy Knysh (aknysh) and others added 4 commits November 5, 2025 21:51
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]>
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]>
@aknysh

Copy link
Copy Markdown
Member Author

CodeRabbit (@coderabbitai) full review please

@coderabbitai

coderabbitai Bot commented Nov 6, 2025

Copy link
Copy Markdown
Contributor

Andriy Knysh (@aknysh): I'll conduct a comprehensive review of all changes in this PR, including:

  • OpenTofu detection logic and two-tier detection mechanism
  • Module source interpolation support implementation
  • Error handling and validation skipping for OpenTofu-specific features
  • Test coverage (unit and integration tests)
  • Documentation updates (PRD and user-facing docs)
  • Test fixtures and configuration
  • Dependency updates

Starting the full review now.


🧠 Learnings used
Learnt from: osterman
Repo: cloudposse/atmos PR: 1599
File: internal/exec/terraform.go:394-402
Timestamp: 2025-10-10T23:51:36.597Z
Learning: In Atmos (internal/exec/terraform.go), when adding OpenTofu-specific flags like `--var-file` for `init`, do not gate them based on command name (e.g., checking if `info.Command == "tofu"` or `info.Command == "opentofu"`) because command names don't reliably indicate the actual binary being executed (symlinks, aliases). Instead, document the OpenTofu requirement in code comments and documentation, trusting users who enable the feature (e.g., `PassVars`) to ensure their terraform command points to an OpenTofu binary.

Learnt from: aknysh
Repo: cloudposse/atmos PR: 944
File: go.mod:206-206
Timestamp: 2025-01-17T00:18:57.769Z
Learning: For indirect dependencies with license compliance issues in the cloudposse/atmos repository, the team prefers to handle them in follow-up PRs rather than blocking the current changes, as these issues often require deeper investigation of the dependency tree.

Learnt from: Listener430
Repo: cloudposse/atmos PR: 934
File: tests/fixtures/scenarios/docs-generate/README.md.gotmpl:99-118
Timestamp: 2025-01-25T03:51:57.689Z
Learning: For the cloudposse/atmos repository, changes to template contents should be handled in dedicated PRs and are typically considered out of scope for PRs focused on other objectives.
✅ Actions performed

Full review triggered.

coderabbitai[bot]
coderabbitai Bot previously approved these changes Nov 6, 2025

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
NOTICE (1)

1-1: Regenerate NOTICE file to resolve pipeline failure.

The pipeline reports the NOTICE file is out of date. Run the generation script locally before merging:

./scripts/generate-notice.sh

The license URL updates (lines 122, 158, 346, 350, 354, 486, 667, 763, 767) correctly reflect the dependency version bumps in go.mod.

🧹 Nitpick comments (3)
website/docs/core-concepts/projects/configuration/opentofu.mdx (1)

173-306: Excellent documentation for OpenTofu 1.8+ module source interpolation.

The new section is comprehensive and well-structured:

  • Clear explanation of automatic support with zero configuration
  • Complete working examples (HCL + YAML)
  • Detailed "How It Works" covering two-tier detection and caching
  • Supported command patterns
  • Requirements clearly stated
  • Migration guidance
  • Practical troubleshooting steps

The documentation effectively guides users through the feature without overwhelming them.

Optional: Consider typographic quotes for consistency.

If the docs team has a preference, you could update the straight quotes to typographic quotes in a few places (lines 179, 215, 218-219, 279). This is purely cosmetic and not critical.

tests/fixtures/scenarios/opentofu-module-source-interpolation/README.md (1)

1-152: Outstanding test fixture documentation.

This README is exceptionally comprehensive, covering:

  • Clear problem statement and solution
  • Complete test structure breakdown
  • Integration and unit test descriptions
  • Expected behavior
  • Root cause analysis
  • Technical implementation details (two-tier detection strategy)
  • References to related issues and docs

The documentation serves as both a test guide and a technical reference, making it easy to understand the fixture's purpose and how it validates the OpenTofu 1.8+ feature.

Optional: Format bare URLs as markdown links.

Lines 150-151 have bare URLs that static analysis flagged. Consider formatting as markdown links:

-  - Issue: https://github.com/cloudposse/atmos/issues/1753
-  - OpenTofu 1.8 Release: https://opentofu.org/blog/opentofu-1-8-0/
+  - [Issue #1753](https://github.com/cloudposse/atmos/issues/1753)
+  - [OpenTofu 1.8 Release](https://opentofu.org/blog/opentofu-1-8-0/)

This is cosmetic and not critical for a test fixture README.

docs/prd/opentofu-module-source-interpolation.md (1)

1-555: Comprehensive and well-structured PRD.

This PRD excellently documents the entire feature lifecycle:

  • Clear problem statement with concrete error examples
  • Thorough root cause analysis explaining the validation pipeline
  • Detailed solution with auto-detection strategy (fast path, slow path, caching)
  • Extensive testing coverage (67+ unit tests, 3 integration tests)
  • Complete documentation and migration guidance
  • All success criteria met

The PRD serves as both implementation documentation and a reference for understanding the technical decisions behind the zero-configuration approach.

Optional: Add language tags to fenced code blocks.

Static analysis suggests adding language identifiers to code blocks at lines 15, 84, 235, and 416 for better syntax highlighting:

-```
+```text
 failed to load terraform module Variables not allowed: Variables may not be used here.

And similarly for the other blocks. This improves readability but is not critical for a PRD document.

</blockquote></details>

</blockquote></details>

<details>
<summary>📜 Review details</summary>

**Configuration used**: Path: .coderabbit.yaml

**Review profile**: CHILL

**Plan**: Pro

**Disabled knowledge base sources:**

- Linear integration is disabled by default for public repositories

> You can enable these sources in your CodeRabbit configuration.

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 072a31f6e23c08f2326a1b8070e8d6a2eb26d13e and 8265de6700eff6fb539f43d73768c757aa290289.

</details>

<details>
<summary>⛔ Files ignored due to path filters (1)</summary>

* `go.sum` is excluded by `!**/*.sum`

</details>

<details>
<summary>📒 Files selected for processing (15)</summary>

* `NOTICE` (6 hunks)
* `docs/prd/opentofu-module-source-interpolation.md` (1 hunks)
* `go.mod` (4 hunks)
* `internal/exec/opentofu_module_source_interpolation_test.go` (1 hunks)
* `internal/exec/terraform_detection.go` (1 hunks)
* `internal/exec/terraform_detection_test.go` (1 hunks)
* `internal/exec/utils.go` (2 hunks)
* `tests/fixtures/scenarios/opentofu-module-source-interpolation/README.md` (1 hunks)
* `tests/fixtures/scenarios/opentofu-module-source-interpolation/atmos.yaml` (1 hunks)
* `tests/fixtures/scenarios/opentofu-module-source-interpolation/components/terraform/test-component/main.tf` (1 hunks)
* `tests/fixtures/scenarios/opentofu-module-source-interpolation/components/terraform/test-component/modules/example/main.tf` (1 hunks)
* `tests/fixtures/scenarios/opentofu-module-source-interpolation/stacks/test-stack.yaml` (1 hunks)
* `tests/fixtures/scenarios/schemas-validation-positive/atmos.yaml` (1 hunks)
* `tests/fixtures/scenarios/schemas-validation-positive/bower-schema.json` (1 hunks)
* `website/docs/core-concepts/projects/configuration/opentofu.mdx` (1 hunks)

</details>

<details>
<summary>🧰 Additional context used</summary>

<details>
<summary>📓 Path-based instructions (5)</summary>

<details>
<summary>**/*_test.go</summary>


**📄 CodeRabbit inference engine (.cursor/rules/atmos-rules.mdc)**

> `**/*_test.go`: Every new feature must include comprehensive unit tests
> Test both happy paths and error conditions
> Use table-driven tests for multiple scenarios

Files:
- `internal/exec/opentofu_module_source_interpolation_test.go`
- `internal/exec/terraform_detection_test.go`

</details>
<details>
<summary>**/*.go</summary>


**📄 CodeRabbit inference engine (.cursor/rules/atmos-rules.mdc)**

> `**/*.go`: All code must pass golangci-lint checks
> Follow Go error handling idioms and use meaningful error messages
> Wrap errors with context using fmt.Errorf("context: %w", err)
> Consider custom error types for domain-specific errors
> Follow standard Go coding style; run gofmt and goimports
> Use snake_case for environment variables
> Document complex logic with inline comments

Files:
- `internal/exec/opentofu_module_source_interpolation_test.go`
- `internal/exec/utils.go`
- `internal/exec/terraform_detection.go`
- `internal/exec/terraform_detection_test.go`

</details>
<details>
<summary>**/!(*_test).go</summary>


**📄 CodeRabbit inference engine (.cursor/rules/atmos-rules.mdc)**

> Document all exported functions, types, and methods with Go doc comments

Files:
- `internal/exec/utils.go`
- `internal/exec/terraform_detection.go`

</details>
<details>
<summary>go.{mod,sum}</summary>


**📄 CodeRabbit inference engine (.cursor/rules/atmos-rules.mdc)**

> `go.{mod,sum}`: Manage dependencies with Go modules
> Keep dependencies up to date

Files:
- `go.mod`

</details>
<details>
<summary>website/**</summary>


**📄 CodeRabbit inference engine (.cursor/rules/atmos-rules.mdc)**

> `website/**`: Update website documentation in website/ when adding features
> Ensure consistency between CLI help text and website documentation
> Follow the website's documentation structure and style
> Keep website code in website/ and follow its architecture/style; test changes locally
> Keep CLI and website documentation in sync; document new features with examples and use cases

Files:
- `website/docs/core-concepts/projects/configuration/opentofu.mdx`

</details>

</details><details>
<summary>🧠 Learnings (46)</summary>

<details>
<summary>📓 Common learnings</summary>

Learnt from: osterman
Repo: cloudposse/atmos PR: 1599
File: internal/exec/terraform.go:394-402
Timestamp: 2025-10-10T23:51:36.597Z
Learning: In Atmos (internal/exec/terraform.go), when adding OpenTofu-specific flags like --var-file for init, do not gate them based on command name (e.g., checking if info.Command == "tofu" or info.Command == "opentofu") because command names don't reliably indicate the actual binary being executed (symlinks, aliases). Instead, document the OpenTofu requirement in code comments and documentation, trusting users who enable the feature (e.g., PassVars) to ensure their terraform command points to an OpenTofu binary.


Learnt from: aknysh
Repo: cloudposse/atmos PR: 944
File: go.mod:206-206
Timestamp: 2025-01-17T00:18:57.769Z
Learning: For indirect dependencies with license compliance issues in the cloudposse/atmos repository, the team prefers to handle them in follow-up PRs rather than blocking the current changes, as these issues often require deeper investigation of the dependency tree.


Learnt from: Listener430
Repo: cloudposse/atmos PR: 934
File: tests/fixtures/scenarios/docs-generate/README.md.gotmpl:99-118
Timestamp: 2025-01-25T03:51:57.689Z
Learning: For the cloudposse/atmos repository, changes to template contents should be handled in dedicated PRs and are typically considered out of scope for PRs focused on other objectives.


</details>
<details>
<summary>📚 Learning: 2025-01-25T03:44:52.619Z</summary>

Learnt from: Listener430
Repo: cloudposse/atmos PR: 934
File: tests/fixtures/scenarios/docs-generate/README.md:14-23
Timestamp: 2025-01-25T03:44:52.619Z
Learning: Test fixtures under tests/fixtures/ should not be modified unless the test case itself needs to change, as they are deliberately set up to represent specific scenarios for testing purposes.


**Applied to files:**
- `tests/fixtures/scenarios/opentofu-module-source-interpolation/README.md`

</details>
<details>
<summary>📚 Learning: 2025-10-10T23:51:36.597Z</summary>

Learnt from: osterman
Repo: cloudposse/atmos PR: 1599
File: internal/exec/terraform.go:394-402
Timestamp: 2025-10-10T23:51:36.597Z
Learning: In Atmos (internal/exec/terraform.go), when adding OpenTofu-specific flags like --var-file for init, do not gate them based on command name (e.g., checking if info.Command == "tofu" or info.Command == "opentofu") because command names don't reliably indicate the actual binary being executed (symlinks, aliases). Instead, document the OpenTofu requirement in code comments and documentation, trusting users who enable the feature (e.g., PassVars) to ensure their terraform command points to an OpenTofu binary.


**Applied to files:**
- `tests/fixtures/scenarios/opentofu-module-source-interpolation/README.md`
- `internal/exec/opentofu_module_source_interpolation_test.go`
- `internal/exec/utils.go`
- `internal/exec/terraform_detection.go`
- `tests/fixtures/scenarios/opentofu-module-source-interpolation/components/terraform/test-component/main.tf`
- `tests/fixtures/scenarios/opentofu-module-source-interpolation/atmos.yaml`
- `docs/prd/opentofu-module-source-interpolation.md`
- `website/docs/core-concepts/projects/configuration/opentofu.mdx`
- `internal/exec/terraform_detection_test.go`
- `tests/fixtures/scenarios/opentofu-module-source-interpolation/stacks/test-stack.yaml`

</details>
<details>
<summary>📚 Learning: 2025-03-18T12:26:25.329Z</summary>

Learnt from: Listener430
Repo: cloudposse/atmos PR: 1149
File: tests/snapshots/TestCLICommands_atmos_vendor_pull_ssh.stderr.golden:7-7
Timestamp: 2025-03-18T12:26:25.329Z
Learning: In the Atmos project, typos or inconsistencies in test snapshot files (such as "terrafrom" instead of "terraform") may be intentional as they capture the exact output of commands and should not be flagged as issues requiring correction.


**Applied to files:**
- `tests/fixtures/scenarios/opentofu-module-source-interpolation/README.md`
- `tests/fixtures/scenarios/schemas-validation-positive/atmos.yaml`
- `internal/exec/utils.go`
- `tests/fixtures/scenarios/opentofu-module-source-interpolation/atmos.yaml`
- `docs/prd/opentofu-module-source-interpolation.md`

</details>
<details>
<summary>📚 Learning: 2024-12-01T00:33:20.298Z</summary>

Learnt from: aknysh
Repo: cloudposse/atmos PR: 810
File: examples/tests/stacks/catalog/terraform/template-functions-test2/defaults.yaml:28-32
Timestamp: 2024-12-01T00:33:20.298Z
Learning: In examples/tests/stacks/catalog/terraform/template-functions-test2/defaults.yaml, !exec atmos terraform output is used in examples to demonstrate its usage, even though !terraform.output is the recommended approach according to the documentation.


**Applied to files:**
- `tests/fixtures/scenarios/opentofu-module-source-interpolation/README.md`
- `internal/exec/opentofu_module_source_interpolation_test.go`
- `tests/fixtures/scenarios/opentofu-module-source-interpolation/components/terraform/test-component/main.tf`
- `tests/fixtures/scenarios/opentofu-module-source-interpolation/atmos.yaml`
- `tests/fixtures/scenarios/opentofu-module-source-interpolation/components/terraform/test-component/modules/example/main.tf`
- `tests/fixtures/scenarios/opentofu-module-source-interpolation/stacks/test-stack.yaml`

</details>
<details>
<summary>📚 Learning: 2025-11-01T20:24:29.557Z</summary>

Learnt from: osterman
Repo: cloudposse/atmos PR: 1714
File: NOTICE:0-0
Timestamp: 2025-11-01T20:24:29.557Z
Learning: In the cloudposse/atmos repository, the NOTICE file is programmatically generated and should not be manually edited. Issues with dependency license URLs in NOTICE will be resolved when upstream package metadata is corrected.


**Applied to files:**
- `NOTICE`
- `tests/fixtures/scenarios/schemas-validation-positive/atmos.yaml`

</details>
<details>
<summary>📚 Learning: 2025-07-05T20:59:02.914Z</summary>

Learnt from: aknysh
Repo: cloudposse/atmos PR: 1363
File: internal/exec/template_utils.go:18-18
Timestamp: 2025-07-05T20:59:02.914Z
Learning: In the Atmos project, gomplate v4 is imported with a blank import (_ "github.com/hairyhenderson/gomplate/v4") alongside v3 imports to resolve AWS SDK version conflicts. V3 uses older AWS SDK versions that conflict with newer AWS modules used by Atmos. A full migration to v4 requires extensive refactoring due to API changes and should be handled in a separate PR.


**Applied to files:**
- `NOTICE`
- `go.mod`

</details>
<details>
<summary>📚 Learning: 2025-09-25T01:02:48.697Z</summary>

Learnt from: Benbentwo
Repo: cloudposse/atmos PR: 1475
File: pkg/auth/manager.go:304-312
Timestamp: 2025-09-25T01:02:48.697Z
Learning: The auth manager in pkg/auth/manager.go should remain cloud-agnostic and not contain AWS-specific logic or references to specific cloud providers. Keep the manager generic and extensible.


**Applied to files:**
- `NOTICE`

</details>
<details>
<summary>📚 Learning: 2025-09-23T02:30:42.362Z</summary>

Learnt from: CR
Repo: cloudposse/atmos PR: 0
File: .cursor/rules/atmos-rules.mdc:0-0
Timestamp: 2025-09-23T02:30:42.362Z
Learning: Applies to **/*_test.go : Every new feature must include comprehensive unit tests


**Applied to files:**
- `internal/exec/opentofu_module_source_interpolation_test.go`
- `internal/exec/terraform_detection_test.go`

</details>
<details>
<summary>📚 Learning: 2025-09-23T02:30:42.362Z</summary>

Learnt from: CR
Repo: cloudposse/atmos PR: 0
File: .cursor/rules/atmos-rules.mdc:0-0
Timestamp: 2025-09-23T02:30:42.362Z
Learning: Applies to **/*_test.go : Use table-driven tests for multiple scenarios


**Applied to files:**
- `internal/exec/opentofu_module_source_interpolation_test.go`
- `internal/exec/terraform_detection_test.go`

</details>
<details>
<summary>📚 Learning: 2025-09-23T02:30:42.362Z</summary>

Learnt from: CR
Repo: cloudposse/atmos PR: 0
File: .cursor/rules/atmos-rules.mdc:0-0
Timestamp: 2025-09-23T02:30:42.362Z
Learning: Applies to **/*_test.go : Test both happy paths and error conditions


**Applied to files:**
- `internal/exec/opentofu_module_source_interpolation_test.go`
- `internal/exec/terraform_detection_test.go`

</details>
<details>
<summary>📚 Learning: 2025-05-23T19:51:47.091Z</summary>

Learnt from: samtholiya
Repo: cloudposse/atmos PR: 1255
File: cmd/describe_affected_test.go:15-15
Timestamp: 2025-05-23T19:51:47.091Z
Learning: The atmos codebase has a custom extension to *testing.T that provides a Chdir method, allowing test functions to call t.Chdir() to change working directories during tests. This is used consistently across test files in the codebase.


**Applied to files:**
- `internal/exec/opentofu_module_source_interpolation_test.go`

</details>
<details>
<summary>📚 Learning: 2024-11-12T03:16:02.910Z</summary>

Learnt from: aknysh
Repo: cloudposse/atmos PR: 775
File: internal/exec/template_funcs_component.go:157-159
Timestamp: 2024-11-12T03:16:02.910Z
Learning: In the Go code for componentFunc in internal/exec/template_funcs_component.go, the function cleanTerraformWorkspace does not return errors, and it's acceptable if the file does not exist. Therefore, error handling for cleanTerraformWorkspace is not needed.


**Applied to files:**
- `internal/exec/opentofu_module_source_interpolation_test.go`
- `internal/exec/utils.go`

</details>
<details>
<summary>📚 Learning: 2025-05-23T19:51:47.091Z</summary>

Learnt from: samtholiya
Repo: cloudposse/atmos PR: 1255
File: cmd/describe_affected_test.go:15-15
Timestamp: 2025-05-23T19:51:47.091Z
Learning: In the atmos codebase, t.Chdir() is a valid method call on *testing.T objects and works correctly for changing directories in tests. This is implemented through custom testing framework extensions and is used consistently throughout the test suite.


**Applied to files:**
- `internal/exec/opentofu_module_source_interpolation_test.go`

</details>
<details>
<summary>📚 Learning: 2025-08-15T14:43:41.030Z</summary>

Learnt from: aknysh
Repo: cloudposse/atmos PR: 1352
File: pkg/store/artifactory_store_test.go:108-113
Timestamp: 2025-08-15T14:43:41.030Z
Learning: In test files for the atmos project, it's acceptable to ignore errors from os.Setenv/Unsetenv operations during test environment setup and teardown, as these are controlled test scenarios.


**Applied to files:**
- `internal/exec/opentofu_module_source_interpolation_test.go`

</details>
<details>
<summary>📚 Learning: 2024-11-25T17:17:15.703Z</summary>

Learnt from: RoseSecurity
Repo: cloudposse/atmos PR: 797
File: pkg/list/atmos.yaml:213-214
Timestamp: 2024-11-25T17:17:15.703Z
Learning: The file pkg/list/atmos.yaml is primarily intended for testing purposes.


**Applied to files:**
- `tests/fixtures/scenarios/schemas-validation-positive/atmos.yaml`
- `tests/fixtures/scenarios/opentofu-module-source-interpolation/atmos.yaml`

</details>
<details>
<summary>📚 Learning: 2025-09-10T21:17:55.273Z</summary>

Learnt from: samtholiya
Repo: cloudposse/atmos PR: 1466
File: toolchain/http_client_test.go:3-10
Timestamp: 2025-09-10T21:17:55.273Z
Learning: In the cloudposse/atmos repository, imports should never be changed as per samtholiya's coding guidelines.


**Applied to files:**
- `tests/fixtures/scenarios/schemas-validation-positive/atmos.yaml`
- `tests/fixtures/scenarios/opentofu-module-source-interpolation/atmos.yaml`

</details>
<details>
<summary>📚 Learning: 2025-04-11T22:06:46.999Z</summary>

Learnt from: samtholiya
Repo: cloudposse/atmos PR: 1147
File: internal/exec/validate_schema.go:42-57
Timestamp: 2025-04-11T22:06:46.999Z
Learning: The "ExecuteAtmosValidateSchemaCmd" function in internal/exec/validate_schema.go has been reviewed and confirmed to have acceptable cognitive complexity despite static analysis warnings. The function uses a clean structure with only three if statements for error handling and delegates complex operations to helper methods.


**Applied to files:**
- `tests/fixtures/scenarios/schemas-validation-positive/atmos.yaml`
- `internal/exec/utils.go`

</details>
<details>
<summary>📚 Learning: 2025-01-25T03:51:57.689Z</summary>

Learnt from: Listener430
Repo: cloudposse/atmos PR: 934
File: tests/fixtures/scenarios/docs-generate/README.md.gotmpl:99-118
Timestamp: 2025-01-25T03:51:57.689Z
Learning: For the cloudposse/atmos repository, changes to template contents should be handled in dedicated PRs and are typically considered out of scope for PRs focused on other objectives.


**Applied to files:**
- `tests/fixtures/scenarios/schemas-validation-positive/atmos.yaml`
- `tests/fixtures/scenarios/opentofu-module-source-interpolation/atmos.yaml`

</details>
<details>
<summary>📚 Learning: 2024-12-02T21:26:32.337Z</summary>

Learnt from: osterman
Repo: cloudposse/atmos PR: 808
File: pkg/config/config.go:478-483
Timestamp: 2024-12-02T21:26:32.337Z
Learning: In the 'atmos' project, when reviewing Go code like pkg/config/config.go, avoid suggesting file size checks after downloading remote configs if such checks aren't implemented elsewhere in the codebase.


**Applied to files:**
- `tests/fixtures/scenarios/schemas-validation-positive/atmos.yaml`
- `internal/exec/utils.go`
- `tests/fixtures/scenarios/opentofu-module-source-interpolation/atmos.yaml`

</details>
<details>
<summary>📚 Learning: 2025-02-14T23:12:38.030Z</summary>

Learnt from: Listener430
Repo: cloudposse/atmos PR: 1061
File: tests/snapshots/TestCLICommands_atmos_vendor_pull_ssh.stderr.golden:8-8
Timestamp: 2025-02-14T23:12:38.030Z
Learning: Test snapshots in the Atmos project, particularly for dry run scenarios, may be updated during the development process, and temporary inconsistencies in their content should not be flagged as issues.


**Applied to files:**
- `tests/fixtures/scenarios/schemas-validation-positive/atmos.yaml`

</details>
<details>
<summary>📚 Learning: 2025-01-17T00:18:57.769Z</summary>

Learnt from: aknysh
Repo: cloudposse/atmos PR: 944
File: go.mod:206-206
Timestamp: 2025-01-17T00:18:57.769Z
Learning: For indirect dependencies with license compliance issues in the cloudposse/atmos repository, the team prefers to handle them in follow-up PRs rather than blocking the current changes, as these issues often require deeper investigation of the dependency tree.


**Applied to files:**
- `tests/fixtures/scenarios/schemas-validation-positive/atmos.yaml`
- `docs/prd/opentofu-module-source-interpolation.md`

</details>
<details>
<summary>📚 Learning: 2024-10-31T19:25:41.298Z</summary>

Learnt from: osterman
Repo: cloudposse/atmos PR: 727
File: internal/exec/terraform_clean.go:233-235
Timestamp: 2024-10-31T19:25:41.298Z
Learning: When specifying color values in functions like confirmDeleteTerraformLocal in internal/exec/terraform_clean.go, avoid hardcoding color values. Instead, use predefined color constants or allow customization through configuration settings to improve accessibility and user experience across different terminals and themes.


**Applied to files:**
- `internal/exec/utils.go`
- `internal/exec/terraform_detection.go`

</details>
<details>
<summary>📚 Learning: 2025-09-29T02:20:11.636Z</summary>

Learnt from: aknysh
Repo: cloudposse/atmos PR: 1540
File: internal/exec/validate_component.go:117-118
Timestamp: 2025-09-29T02:20:11.636Z
Learning: The ValidateComponent function in internal/exec/validate_component.go had its componentSection parameter type refined from any to map[string]any without adding new parameters. This is a type safety improvement, not a signature change requiring call site updates.


**Applied to files:**
- `internal/exec/utils.go`

</details>
<details>
<summary>📚 Learning: 2025-04-26T15:54:10.506Z</summary>

Learnt from: haitham911
Repo: cloudposse/atmos PR: 1195
File: internal/exec/terraform_clean.go:99-99
Timestamp: 2025-04-26T15:54:10.506Z
Learning: The error variable ErrRelPath is defined in internal/exec/terraform_clean_util.go and is used across files in the exec package, including in terraform_clean.go. This is part of an approach to standardize error handling in the codebase.


**Applied to files:**
- `internal/exec/utils.go`

</details>
<details>
<summary>📚 Learning: 2024-10-23T21:36:40.262Z</summary>

Learnt from: osterman
Repo: cloudposse/atmos PR: 740
File: cmd/cmd_utils.go:340-359
Timestamp: 2024-10-23T21:36:40.262Z
Learning: In the Go codebase for Atmos, when reviewing functions like checkAtmosConfig in cmd/cmd_utils.go, avoid suggesting refactoring to return errors instead of calling os.Exit if such changes would significantly increase the scope due to the need to update multiple call sites.


**Applied to files:**
- `internal/exec/utils.go`
- `internal/exec/terraform_detection.go`

</details>
<details>
<summary>📚 Learning: 2024-10-28T01:51:30.811Z</summary>

Learnt from: osterman
Repo: cloudposse/atmos PR: 727
File: internal/exec/terraform_clean.go:329-332
Timestamp: 2024-10-28T01:51:30.811Z
Learning: In the Atmos Go code, when deleting directories or handling file paths (e.g., in terraform_clean.go), always resolve the absolute path using filepath.Abs and use the logger u.LogWarning for logging messages instead of using fmt.Printf.


**Applied to files:**
- `internal/exec/utils.go`

</details>
<details>
<summary>📚 Learning: 2025-01-09T22:37:01.004Z</summary>

Learnt from: samtholiya
Repo: cloudposse/atmos PR: 914
File: cmd/terraform_commands.go:260-265
Timestamp: 2025-01-09T22:37:01.004Z
Learning: In the terraform commands implementation (cmd/terraform_commands.go), the direct use of os.Args[2:] for argument handling is intentionally preserved to avoid extensive refactoring. While it could be improved to use cobra's argument parsing, such changes should be handled in a dedicated PR to maintain focus and minimize risk.


**Applied to files:**
- `internal/exec/utils.go`
- `internal/exec/terraform_detection.go`

</details>
<details>
<summary>📚 Learning: 2025-06-23T02:14:30.937Z</summary>

Learnt from: aknysh
Repo: cloudposse/atmos PR: 1327
File: cmd/terraform.go:111-117
Timestamp: 2025-06-23T02:14:30.937Z
Learning: In cmd/terraform.go, flags for the DescribeAffected function are added dynamically at runtime when info.Affected is true. This is intentional to avoid exposing internal flags like "file", "format", "verbose", "include-spacelift-admin-stacks", "include-settings", and "upload" in the terraform command interface, while still providing them for the shared DescribeAffected function used by both atmos describe affected and atmos terraform apply --affected.


**Applied to files:**
- `internal/exec/utils.go`
- `internal/exec/terraform_detection.go`

</details>
<details>
<summary>📚 Learning: 2024-12-07T16:19:01.683Z</summary>

Learnt from: aknysh
Repo: cloudposse/atmos PR: 825
File: internal/exec/terraform.go:30-30
Timestamp: 2024-12-07T16:19:01.683Z
Learning: In internal/exec/terraform.go, skipping stack validation when help flags are present is not necessary.


**Applied to files:**
- `internal/exec/utils.go`

</details>
<details>
<summary>📚 Learning: 2025-01-09T22:27:25.538Z</summary>

Learnt from: samtholiya
Repo: cloudposse/atmos PR: 914
File: cmd/validate_stacks.go:20-23
Timestamp: 2025-01-09T22:27:25.538Z
Learning: The validate commands in Atmos can have different help handling implementations. Specifically, validate_component.go and validate_stacks.go are designed to handle help requests differently, with validate_stacks.go including positional argument checks while validate_component.go does not.


**Applied to files:**
- `internal/exec/utils.go`

</details>
<details>
<summary>📚 Learning: 2025-01-07T20:38:09.618Z</summary>

Learnt from: samtholiya
Repo: cloudposse/atmos PR: 896
File: cmd/editor_config.go:37-40
Timestamp: 2025-01-07T20:38:09.618Z
Learning: Error handling suggestion for cmd.Help() in cmd/editor_config.go was deferred as the code is planned for future modifications.


**Applied to files:**
- `internal/exec/utils.go`

</details>
<details>
<summary>📚 Learning: 2024-10-31T19:23:45.538Z</summary>

Learnt from: osterman
Repo: cloudposse/atmos PR: 727
File: internal/exec/terraform.go:65-66
Timestamp: 2024-10-31T19:23:45.538Z
Learning: The variable shouldCheckStack in ExecuteTerraform controls whether validation is performed.


**Applied to files:**
- `internal/exec/utils.go`

</details>
<details>
<summary>📚 Learning: 2024-10-27T04:41:49.199Z</summary>

Learnt from: haitham911
Repo: cloudposse/atmos PR: 727
File: internal/exec/terraform_clean.go:215-223
Timestamp: 2024-10-27T04:41:49.199Z
Learning: In internal/exec/terraform_clean.go, the function determineCleanPath is necessary and should not be removed.


**Applied to files:**
- `internal/exec/terraform_detection.go`
- `internal/exec/terraform_detection_test.go`

</details>
<details>
<summary>📚 Learning: 2025-10-11T19:11:58.965Z</summary>

Learnt from: osterman
Repo: cloudposse/atmos PR: 1599
File: internal/exec/terraform.go:0-0
Timestamp: 2025-10-11T19:11:58.965Z
Learning: For terraform apply interactivity checks in Atmos (internal/exec/terraform.go), use stdin TTY detection (e.g., IsTTYSupportForStdin() or checking os.Stdin) to determine if user prompts are possible. This is distinct from stdout/stderr TTY checks used for output display (like TUI rendering). User input requires stdin to be a TTY; output display requires stdout/stderr to be a TTY.


**Applied to files:**
- `internal/exec/terraform_detection.go`

</details>
<details>
<summary>📚 Learning: 2024-11-02T15:35:09.958Z</summary>

Learnt from: aknysh
Repo: cloudposse/atmos PR: 759
File: internal/exec/terraform.go:366-368
Timestamp: 2024-11-02T15:35:09.958Z
Learning: In internal/exec/terraform.go, the workspace cleaning code under both the general execution path and within the case "init": block is intentionally duplicated because the code execution paths are different. The .terraform/environment file should be deleted before executing terraform init in both scenarios to ensure a clean state.


**Applied to files:**
- `internal/exec/terraform_detection.go`
- `internal/exec/terraform_detection_test.go`

</details>
<details>
<summary>📚 Learning: 2025-10-03T18:02:08.535Z</summary>

Learnt from: Benbentwo
Repo: cloudposse/atmos PR: 1475
File: internal/exec/terraform.go:269-272
Timestamp: 2025-10-03T18:02:08.535Z
Learning: In internal/exec/terraform.go, when auth.TerraformPreHook fails, the error is logged but execution continues. This is a deliberate design choice to allow Terraform commands to proceed even if authentication setup fails, rather than failing fast.


**Applied to files:**
- `internal/exec/terraform_detection.go`

</details>
<details>
<summary>📚 Learning: 2025-09-23T02:30:42.362Z</summary>

Learnt from: CR
Repo: cloudposse/atmos PR: 0
File: .cursor/rules/atmos-rules.mdc:0-0
Timestamp: 2025-09-23T02:30:42.362Z
Learning: Applies to go.{mod,sum} : Manage dependencies with Go modules


**Applied to files:**
- `go.mod`

</details>
<details>
<summary>📚 Learning: 2025-09-23T02:30:42.362Z</summary>

Learnt from: CR
Repo: cloudposse/atmos PR: 0
File: .cursor/rules/atmos-rules.mdc:0-0
Timestamp: 2025-09-23T02:30:42.362Z
Learning: Applies to go.{mod,sum} : Keep dependencies up to date


**Applied to files:**
- `go.mod`

</details>
<details>
<summary>📚 Learning: 2025-01-17T00:21:32.987Z</summary>

Learnt from: aknysh
Repo: cloudposse/atmos PR: 944
File: go.mod:3-3
Timestamp: 2025-01-17T00:21:32.987Z
Learning: Go version 1.23.0 was deliberately introduced by the maintainer (aknysh) in January 2025. While this might be a pre-release or development version of Go, it has been approved for use in this project.


**Applied to files:**
- `go.mod`

</details>
<details>
<summary>📚 Learning: 2025-01-17T00:21:32.987Z</summary>

Learnt from: aknysh
Repo: cloudposse/atmos PR: 944
File: go.mod:3-3
Timestamp: 2025-01-17T00:21:32.987Z
Learning: The project uses Go version 1.23.0 which has been confirmed by the maintainer to be working in production for months. Do not flag this as an invalid Go version.


**Applied to files:**
- `go.mod`

</details>
<details>
<summary>📚 Learning: 2025-02-14T16:16:36.328Z</summary>

Learnt from: mcalhoun
Repo: cloudposse/atmos PR: 1034
File: go.mod:3-3
Timestamp: 2025-02-14T16:16:36.328Z
Learning: Go 1.23.5 was released on January 16, 2025, and is a valid Go version. Always verify Go version information with official sources before suggesting version changes.


**Applied to files:**
- `go.mod`

</details>
<details>
<summary>📚 Learning: 2025-10-02T19:17:51.630Z</summary>

Learnt from: osterman
Repo: cloudposse/atmos PR: 1504
File: pkg/profiler/profiler.go:20-31
Timestamp: 2025-10-02T19:17:51.630Z
Learning: In pkg/profiler/profiler.go, profiler-specific errors (ErrUnsupportedProfileType, ErrStartCPUProfile, ErrStartTraceProfile, ErrCreateProfileFile) must remain local and cannot be moved to errors/errors.go due to an import cycle: pkg/profiler → errors → pkg/schema → pkg/profiler. This is a valid exception to the centralized errors policy.


**Applied to files:**
- `go.mod`

</details>
<details>
<summary>📚 Learning: 2024-12-12T15:17:45.245Z</summary>

Learnt from: osterman
Repo: cloudposse/atmos PR: 808
File: examples/demo-atmos.d/atmos.d/tools/helmfile.yml:10-10
Timestamp: 2024-12-12T15:17:45.245Z
Learning: In examples/demo-atmos.d/atmos.d/tools/helmfile.yml, when suggesting changes to kubeconfig_path, ensure that the values use valid Go template syntax.


**Applied to files:**
- `tests/fixtures/scenarios/opentofu-module-source-interpolation/atmos.yaml`

</details>
<details>
<summary>📚 Learning: 2025-01-25T15:21:40.413Z</summary>

Learnt from: osterman
Repo: cloudposse/atmos PR: 808
File: examples/demo-atmos-cli-imports/atmos.yaml:8-8
Timestamp: 2025-01-25T15:21:40.413Z
Learning: In Atmos, when a directory is specified for configuration loading (e.g., in the import section of atmos.yaml), all files within that directory should be treated as Atmos configurations. Do not suggest restricting file extensions in directory-based glob patterns.


**Applied to files:**
- `tests/fixtures/scenarios/opentofu-module-source-interpolation/atmos.yaml`

</details>
<details>
<summary>📚 Learning: 2025-09-24T20:45:40.401Z</summary>

Learnt from: Benbentwo
Repo: cloudposse/atmos PR: 1475
File: tests/fixtures/scenarios/atmos-auth/stacks/deploy/nonprod.yaml:3-4
Timestamp: 2025-09-24T20:45:40.401Z
Learning: In Atmos stack files, the correct syntax for importing other stack files is import: (singular), not imports: (plural). All stack files in the Atmos codebase consistently use import: followed by a list of paths to import.


**Applied to files:**
- `tests/fixtures/scenarios/opentofu-module-source-interpolation/atmos.yaml`

</details>

</details><details>
<summary>🪛 Checkov (3.2.334)</summary>

<details>
<summary>tests/fixtures/scenarios/opentofu-module-source-interpolation/components/terraform/test-component/main.tf</summary>

[medium] 29-33: Ensure Terraform module sources use a commit hash

(CKV_TF_1)

---

[high] 29-33: Ensure Terraform module sources use a tag with a version number

(CKV_TF_2)

</details>

</details>
<details>
<summary>🪛 GitHub Actions: Dependency Review</summary>

<details>
<summary>NOTICE</summary>

[error] 1-1: NOTICE file is out of date. Run './scripts/generate-notice.sh' locally and commit the changes.

</details>

</details>
<details>
<summary>🪛 LanguageTool</summary>

<details>
<summary>tests/fixtures/scenarios/opentofu-module-source-interpolation/README.md</summary>

[typographical] ~22-~22: Consider using typographic quotation marks here.
Context: ...the configured command is OpenTofu (via `command: "tofu"` or any path containing "tofu") and ski...

(EN_QUOTES)

---

[typographical] ~23-~23: Consider using typographic quotation marks here.
Context: ...command: "tofu"` or any path containing "tofu") and skips validation errors for known ...

(EN_QUOTES)

---

[typographical] ~35-~35: Consider using typographic quotation marks here.
Context: ...figuration (`atmos.yaml`)  - Configures `command: "tofu"` to use OpenTofu - Enables `init.pass_v...

(EN_QUOTES)

---

[typographical] ~96-~96: Consider using typographic quotation marks here.
Context: ...ast Path Detection**: Basename contains "tofu" 2. **Slow Path Detection**: Execute ver...

(EN_QUOTES)

---

[typographical] ~132-~132: Consider using typographic quotation marks here.
Context: ...orm/tofu commands execute 4. Users with `command: "tofu"` couldn't use OpenTofu-specific feature...

(EN_QUOTES)

---

[typographical] ~138-~138: Consider using typographic quotation marks here.
Context: ...: Check if executable basename contains "tofu" (e.g., `/usr/bin/tofu`, `/opt/homebrew/...

(EN_QUOTES)

---

[typographical] ~139-~139: Consider using a typographic opening quote here.
Context: ...<command> version` and check output for "OpenTofu" 3. **Caching**: Results cached...

(EN_QUOTES)

---

[typographical] ~139-~139: Consider using a typographic close quote here.
Context: ... version` and check output for "OpenTofu" 3. **Caching**: Results cached by comma...

(EN_QUOTES)

</details>
<details>
<summary>docs/prd/opentofu-module-source-interpolation.md</summary>

[typographical] ~47-~47: In American English, use a period after an abbreviation.
Context: ...e` configuration option.  ### Terraform vs OpenTofu  **Important:** This feature i...

(MISSING_PERIOD_AFTER_ABBREVIATION)

---

[typographical] ~223-~223: Consider using typographic quotation marks here.
Context: ...* Check if executable basename contains "tofu" (e.g., `/usr/bin/tofu`, `/opt/homebrew/...

(EN_QUOTES)

---

[typographical] ~224-~224: Consider using a typographic opening quote here.
Context: ...<command> version` and check output for "OpenTofu"    - **Caching:** Results cach...

(EN_QUOTES)

---

[typographical] ~224-~224: Consider using a typographic close quote here.
Context: ... version` and check output for "OpenTofu"    - **Caching:** Results cached by com...

(EN_QUOTES)

---

[typographical] ~228-~228: Consider using a typographic opening quote here.
Context: ...or known OpenTofu-specific errors:    - "Variables not allowed" - Module source i...

(EN_QUOTES)

---

[typographical] ~228-~228: Consider using a typographic close quote here.
Context: ...ific errors:    - "Variables not allowed" - Module source interpolation (OpenTofu...

(EN_QUOTES)

---

[typographical] ~231-~231: Consider using typographic quotation marks here.
Context: ...figuration Required** - Just works when `command: "tofu"` is configured  **Implementation Files:...

(EN_QUOTES)

---

[typographical] ~341-~341: Consider using typographic quotation marks here.
Context: ...y command path that either: 1. Contains "tofu" in the basename (case-insensitive), OR ...

(EN_QUOTES)

---

[typographical] ~342-~342: Consider using a typographic opening quote here.
Context: ...ename (case-insensitive), OR 2. Returns "OpenTofu" when executing `<command> vers...

(EN_QUOTES)

---

[typographical] ~342-~342: Consider using a typographic close quote here.
Context: ...se-insensitive), OR 2. Returns "OpenTofu" when executing `<command> version`  ## ...

(EN_QUOTES)

---

[typographical] ~456-~456: Consider using a typographic opening quote here.
Context: ...fu.mdx`  Added comprehensive section on "OpenTofu 1.8+ Module Source Interpolatio...

(EN_QUOTES)

---

[typographical] ~456-~456: Consider using a typographic close quote here.
Context: ...penTofu 1.8+ Module Source Interpolation" including: - ✅ Automatic support explan...

(EN_QUOTES)

---

[typographical] ~523-~523: In American English, use a period after an abbreviation.
Context: ...entation Decisions  1. **Auto-detection vs Configuration?**    - ✅ **Decision:** A...

(MISSING_PERIOD_AFTER_ABBREVIATION)

---

[typographical] ~527-~527: In American English, use a period after an abbreviation.
Context: ...ly, no breaking changes  2. **Fast path vs Slow path?**    - ✅ **Decision:** Two-t...

(MISSING_PERIOD_AFTER_ABBREVIATION)

---

[typographical] ~531-~531: In American English, use a period after an abbreviation.
Context: ...ndles edge cases  3. **Pattern matching vs Lenient mode?**    - ✅ **Decision:** Pa...

(MISSING_PERIOD_AFTER_ABBREVIATION)

---

[grammar] ~536-~536: Use a hyphen to join words.
Context: ...tion skips?**    - ✅ **Decision:** Debug level logging only    - **Rationale:** A...

(QB_NEW_EN_HYPHEN)

---

[typographical] ~540-~540: Consider using a typographic opening quote here.
Context: ...Current:** Module source interpolation ("Variables not allowed")    - **Future:**...

(EN_QUOTES)

---

[typographical] ~540-~540: Consider using a typographic close quote here.
Context: ...ce interpolation ("Variables not allowed")    - **Future:** Pattern list is exten...

(EN_QUOTES)

</details>
<details>
<summary>website/docs/core-concepts/projects/configuration/opentofu.mdx</summary>

[typographical] ~179-~179: Consider using typographic quotation marks here.
Context: ...(by checking if your `command` contains "tofu" or by executing the version command) an...

(EN_QUOTES)

---

[typographical] ~215-~215: Consider using typographic quotation marks here.
Context: ...`  ### How It Works  When you configure `command: "tofu"` in your `atmos.yaml`, Atmos:  1. **Aut...

(EN_QUOTES)

---

[typographical] ~218-~218: Consider using typographic quotation marks here.
Context: ...cks if the executable basename contains "tofu"    - **Slow path**: Executes `<command>...

(EN_QUOTES)

---

[typographical] ~219-~219: Consider using a typographic opening quote here.
Context: ...utes `<command> version` and checks for "OpenTofu"    - **Caches** results for pe...

(EN_QUOTES)

---

[typographical] ~219-~219: Consider using a typographic close quote here.
Context: ...mmand> version` and checks for "OpenTofu"    - **Caches** results for performance...

(EN_QUOTES)

---

[typographical] ~279-~279: Consider using typographic quotation marks here.
Context: ...detection handles it automatically when `command: "tofu"` is configured.  ### Troubleshooting  I...

(EN_QUOTES)

</details>

</details>
<details>
<summary>🪛 markdownlint-cli2 (0.18.1)</summary>

<details>
<summary>tests/fixtures/scenarios/opentofu-module-source-interpolation/README.md</summary>

150-150: Bare URL used

(MD034, no-bare-urls)

---

151-151: Bare URL used

(MD034, no-bare-urls)

</details>
<details>
<summary>docs/prd/opentofu-module-source-interpolation.md</summary>

15-15: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

84-84: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

235-235: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

---

416-416: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

</details>

</details>

</details>

<details>
<summary>⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)</summary>

* GitHub Check: Acceptance Tests (macos)
* GitHub Check: Acceptance Tests (linux)
* GitHub Check: Acceptance Tests (windows)
* GitHub Check: Summary

</details>

<details>
<summary>🔇 Additional comments (14)</summary><blockquote>

<details>
<summary>tests/fixtures/scenarios/schemas-validation-positive/atmos.yaml (1)</summary><blockquote>

`7-9`: **Verify this fixture change is necessary scaffolding for the PR.**

The shift from external schema URL to local file is a clean refactor for test determinism, but given that this PR focuses on OpenTofu 1.8+ module source interpolation, it's worth confirming that this fixture change is required scaffolding for the OpenTofu tests or if it should land in a separate PR. Per prior learnings, fixture/content changes are typically scoped carefully to their primary objective.

</blockquote></details>
<details>
<summary>tests/fixtures/scenarios/schemas-validation-positive/bower-schema.json (1)</summary><blockquote>

`1-51`: **Schema structure is sound.**

The Bower schema is valid JSON Schema (draft-04) with clear property descriptions. It covers the essential Bower configuration fields and should work fine for test validation purposes.

</blockquote></details>
<details>
<summary>go.mod (1)</summary><blockquote>

`25-26`: **LGTM - Dependency updates look good.**

The dependency version bumps are routine patch/minor updates:
- AWS SDK v2 components (s3 manager, s3 service)
- Open Policy Agent
- Google API client
- genproto

All updates align with the NOTICE file changes and appear safe.




Also applies to: 76-76, 99-99, 396-396

</blockquote></details>
<details>
<summary>tests/fixtures/scenarios/opentofu-module-source-interpolation/components/terraform/test-component/modules/example/main.tf (1)</summary><blockquote>

`1-9`: **Simple and effective test module.**

The dummy module structure is well-suited for testing OpenTofu 1.8+ module source interpolation. The default value on `test_input` and the output that echoes the input provide clear verification that the module loads correctly.

</blockquote></details>
<details>
<summary>tests/fixtures/scenarios/opentofu-module-source-interpolation/stacks/test-stack.yaml (1)</summary><blockquote>

`1-17`: **Well-structured test stack for reproducing issue #1753.**

The fixture covers the key scenarios:
- Nested variable structure (`context.build.*`) for OpenTofu 1.8+ module source interpolation
- Flat variables for comparison
- Clear stage definition

This directly addresses the reported issue and provides comprehensive test coverage for both nested and simple variable types.

</blockquote></details>
<details>
<summary>tests/fixtures/scenarios/opentofu-module-source-interpolation/atmos.yaml (1)</summary><blockquote>

`1-21`: **Test fixture configuration correctly set up for OpenTofu 1.8+ testing.**

The configuration includes the essential settings:
- `command: "tofu"` - Triggers automatic OpenTofu detection
- `init.pass_vars: true` - Enables passing variables to init (required for module source interpolation per OpenTofu 1.8+)
- Standard paths and settings for the test scenario

This aligns perfectly with the documented requirements and the PR's auto-detection implementation.

</blockquote></details>
<details>
<summary>internal/exec/opentofu_module_source_interpolation_test.go (1)</summary><blockquote>

`1-135`: **LGTM! Comprehensive integration tests for OpenTofu module source interpolation.**

The test suite effectively validates the fix for issue #1753 across three key scenarios: describe component behavior, varfile generation, and validation skipping. The tests are well-documented, use appropriate assertions, and align with the testing guidelines (comprehensive coverage, clear structure).

</blockquote></details>
<details>
<summary>tests/fixtures/scenarios/opentofu-module-source-interpolation/components/terraform/test-component/main.tf (1)</summary><blockquote>

`1-43`: **Test fixture correctly demonstrates OpenTofu 1.8+ module source interpolation.**

The fixture properly showcases the feature reported in issue #1753, using `source = var.context.build.module_path` to test variable interpolation in module sources. The static analysis warnings about module sources not using version tags/commit hashes are false positives in this context—test fixtures don't require production security practices.

</blockquote></details>
<details>
<summary>internal/exec/utils.go (2)</summary><blockquote>

`25-28`: **Good refactor introducing a named constant for repeated string literal.**

Eliminates the magic string "terraform_config" throughout the file, improving maintainability and addressing linter warnings as noted in the PR description.

---

`631-677`: **Robust OpenTofu detection and validation skipping logic.**

The implementation correctly handles multiple edge cases:
- Nil diagErr despite HasErrors() being true
- Missing path detection via structured errors and string patterns
- Component-level command overrides (addresses past review feedback)
- Known OpenTofu feature detection with appropriate logging

The logic flow is clear and the error handling is comprehensive.

</blockquote></details>
<details>
<summary>internal/exec/terraform_detection_test.go (1)</summary><blockquote>

`1-529`: **Exceptional test coverage for OpenTofu detection logic.**

The test suite is comprehensive and well-structured:
- Table-driven tests for multiple scenarios
- Tests both fast-path (basename) and slow-path (version command) detection
- Validates caching behavior including concurrency safety
- Covers edge cases (empty errors, long messages, concurrent access)
- Includes integration tests and benchmarks

This aligns perfectly with the coding guidelines requiring comprehensive unit tests for new features.

</blockquote></details>
<details>
<summary>internal/exec/terraform_detection.go (3)</summary><blockquote>

`23-62`: **Well-designed two-tier detection strategy with proper caching.**

The `IsOpenTofu` function implements a smart detection flow:
- Fast path avoids subprocess overhead for common cases
- Cache eliminates repeated detection costs
- Proper thread-safety with RWMutex
- Performance tracking integrated

The implementation is clean and efficient.

---

`64-89`: **Solid version command detection with defensive error handling.**

The timeout protection (5 seconds) prevents hanging on unresponsive commands, and defaulting to Terraform on errors is the right choice for strict validation. Debug logging respects the configured log level.

---

`98-120`: **Extensible pattern matching for OpenTofu-specific features.**

The pattern list design makes it straightforward to add new OpenTofu-specific error patterns as the tool evolves. Clear documentation helps future maintainers understand the purpose.

</blockquote></details>

</blockquote></details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->

@codecov

codecov Bot commented Nov 6, 2025 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.08955% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.80%. Comparing base (b246b4e) to head (6b1374f).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
internal/exec/terraform_detection.go 85.71% 5 Missing and 2 partials ⚠️
internal/exec/utils.go 72.22% 2 Missing and 3 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1756   +/-   ##
=======================================
  Coverage   69.79%   69.80%           
=======================================
  Files         397      398    +1     
  Lines       36383    36443   +60     
=======================================
+ Hits        25395    25438   +43     
- Misses       8675     8690   +15     
- Partials     2313     2315    +2     
Flag Coverage Δ
unittests 69.80% <82.08%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
internal/exec/utils.go 78.70% <72.22%> (-0.15%) ⬇️
internal/exec/terraform_detection.go 85.71% <85.71%> (ø)

... and 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jpluijmers

Copy link
Copy Markdown

Andriy Knysh (@aknysh) I've pulled your branch, build it, ran it, and it looks i'm back in business <3

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
docs/prd/opentofu-module-source-interpolation.md (1)

65-69: Convert hard tabs to spaces in code blocks.

Markdown linters (markdownlint) flag hard tabs as violations of the MD010 rule. Replace tabs with spaces for consistency with markdown best practices.

For example, at lines 65-69:

 ```go
-	terraformConfiguration, diags := tfconfig.LoadModule(componentPath)
-	if !diags.HasErrors() {
-		componentInfo["terraform_config"] = terraformConfiguration
-	} else {
-		diagErr := diags.Err()
+	terraformConfiguration, diags := tfconfig.LoadModule(componentPath)
+	if !diags.HasErrors() {
+		componentInfo["terraform_config"] = terraformConfiguration
+	} else {
+		diagErr := diags.Err()

Apply the same change to other code blocks (lines 205-209, 252-290, 300-309, 401-414).

Also applies to: 205-209, 252-290, 300-309, 401-414

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 8265de6 and 6b1374f.

📒 Files selected for processing (1)
  • docs/prd/opentofu-module-source-interpolation.md (1 hunks)
🧰 Additional context used
🧠 Learnings (4)
📓 Common learnings
Learnt from: osterman
Repo: cloudposse/atmos PR: 1599
File: internal/exec/terraform.go:394-402
Timestamp: 2025-10-10T23:51:36.597Z
Learning: In Atmos (internal/exec/terraform.go), when adding OpenTofu-specific flags like `--var-file` for `init`, do not gate them based on command name (e.g., checking if `info.Command == "tofu"` or `info.Command == "opentofu"`) because command names don't reliably indicate the actual binary being executed (symlinks, aliases). Instead, document the OpenTofu requirement in code comments and documentation, trusting users who enable the feature (e.g., `PassVars`) to ensure their terraform command points to an OpenTofu binary.
Learnt from: aknysh
Repo: cloudposse/atmos PR: 944
File: go.mod:206-206
Timestamp: 2025-01-17T00:18:57.769Z
Learning: For indirect dependencies with license compliance issues in the cloudposse/atmos repository, the team prefers to handle them in follow-up PRs rather than blocking the current changes, as these issues often require deeper investigation of the dependency tree.
Learnt from: Listener430
Repo: cloudposse/atmos PR: 934
File: tests/fixtures/scenarios/docs-generate/README.md.gotmpl:99-118
Timestamp: 2025-01-25T03:51:57.689Z
Learning: For the cloudposse/atmos repository, changes to template contents should be handled in dedicated PRs and are typically considered out of scope for PRs focused on other objectives.
📚 Learning: 2025-10-10T23:51:36.597Z
Learnt from: osterman
Repo: cloudposse/atmos PR: 1599
File: internal/exec/terraform.go:394-402
Timestamp: 2025-10-10T23:51:36.597Z
Learning: In Atmos (internal/exec/terraform.go), when adding OpenTofu-specific flags like `--var-file` for `init`, do not gate them based on command name (e.g., checking if `info.Command == "tofu"` or `info.Command == "opentofu"`) because command names don't reliably indicate the actual binary being executed (symlinks, aliases). Instead, document the OpenTofu requirement in code comments and documentation, trusting users who enable the feature (e.g., `PassVars`) to ensure their terraform command points to an OpenTofu binary.

Applied to files:

  • docs/prd/opentofu-module-source-interpolation.md
📚 Learning: 2025-01-17T00:18:57.769Z
Learnt from: aknysh
Repo: cloudposse/atmos PR: 944
File: go.mod:206-206
Timestamp: 2025-01-17T00:18:57.769Z
Learning: For indirect dependencies with license compliance issues in the cloudposse/atmos repository, the team prefers to handle them in follow-up PRs rather than blocking the current changes, as these issues often require deeper investigation of the dependency tree.

Applied to files:

  • docs/prd/opentofu-module-source-interpolation.md
📚 Learning: 2025-03-18T12:26:25.329Z
Learnt from: Listener430
Repo: cloudposse/atmos PR: 1149
File: tests/snapshots/TestCLICommands_atmos_vendor_pull_ssh.stderr.golden:7-7
Timestamp: 2025-03-18T12:26:25.329Z
Learning: In the Atmos project, typos or inconsistencies in test snapshot files (such as "terrafrom" instead of "terraform") may be intentional as they capture the exact output of commands and should not be flagged as issues requiring correction.

Applied to files:

  • docs/prd/opentofu-module-source-interpolation.md
🪛 LanguageTool
docs/prd/opentofu-module-source-interpolation.md

[typographical] ~49-~49: In American English, use a period after an abbreviation.
Context: ...e` configuration option. ### Terraform vs OpenTofu Important: This feature i...

(MISSING_PERIOD_AFTER_ABBREVIATION)


[typographical] ~226-~226: Consider using typographic quotation marks here.
Context: ...* Check if executable basename contains "tofu" (e.g., /usr/bin/tofu, `/opt/homebrew/...

(EN_QUOTES)


[typographical] ~227-~227: Consider using a typographic opening quote here.
Context: ... version` and check output for "OpenTofu" - Caching: Results cached ...

(EN_QUOTES)


[typographical] ~227-~227: Consider using a typographic close quote here.
Context: ... version` and check output for "OpenTofu" - Caching: Results cached by comman...

(EN_QUOTES)


[typographical] ~232-~232: Consider using a typographic opening quote here.
Context: ... for known OpenTofu-specific errors: - "Variables not allowed" - Module source i...

(EN_QUOTES)


[typographical] ~232-~232: Consider using a typographic close quote here.
Context: ...ecific errors: - "Variables not allowed" - Module source interpolation (OpenTofu...

(EN_QUOTES)


[typographical] ~235-~235: Consider using typographic quotation marks here.
Context: ...figuration Required** - Just works when command: "tofu" is configured **Implementation Files:...

(EN_QUOTES)


[typographical] ~347-~347: Consider using typographic quotation marks here.
Context: ... command path that either: 1. Contains "tofu" in the basename (case-insensitive), OR ...

(EN_QUOTES)


[typographical] ~348-~348: Consider using a typographic opening quote here.
Context: ...ename (case-insensitive), OR 2. Returns "OpenTofu" when executing ` vers...

(EN_QUOTES)


[typographical] ~348-~348: Consider using a typographic close quote here.
Context: ...se-insensitive), OR 2. Returns "OpenTofu" when executing <command> version ## ...

(EN_QUOTES)


[typographical] ~465-~465: Consider using a typographic opening quote here.
Context: ...fu.mdx` Added comprehensive section on "OpenTofu 1.8+ Module Source Interpolatio...

(EN_QUOTES)


[typographical] ~465-~465: Consider using a typographic close quote here.
Context: ...penTofu 1.8+ Module Source Interpolation" including: - ✅ Automatic support expla...

(EN_QUOTES)


[typographical] ~533-~533: In American English, use a period after an abbreviation.
Context: ...entation Decisions 1. Auto-detection vs Configuration? - ✅ Decision: Aut...

(MISSING_PERIOD_AFTER_ABBREVIATION)


[typographical] ~538-~538: In American English, use a period after an abbreviation.
Context: ...ly, no breaking changes 2. Fast path vs Slow path? - ✅ Decision: Two-tie...

(MISSING_PERIOD_AFTER_ABBREVIATION)


[typographical] ~543-~543: In American English, use a period after an abbreviation.
Context: ...ndles edge cases 3. Pattern matching vs Lenient mode? - ✅ Decision: Patt...

(MISSING_PERIOD_AFTER_ABBREVIATION)


[grammar] ~550-~550: Use a hyphen to join words.
Context: ...dation skips?** - ✅ Decision: Debug level logging only - Rationale: Avoi...

(QB_NEW_EN_HYPHEN)


[typographical] ~555-~555: Consider using a typographic opening quote here.
Context: ...Current:** Module source interpolation ("Variables not allowed") - Future: Pa...

(EN_QUOTES)


[typographical] ~555-~555: Consider using a typographic close quote here.
Context: ...ce interpolation ("Variables not allowed") - Future: Pattern list is extensib...

(EN_QUOTES)

🪛 markdownlint-cli2 (0.18.1)
docs/prd/opentofu-module-source-interpolation.md

65-65: Hard tabs
Column: 1

(MD010, no-hard-tabs)


67-67: Hard tabs
Column: 1

(MD010, no-hard-tabs)


68-68: Hard tabs
Column: 1

(MD010, no-hard-tabs)


69-69: Hard tabs
Column: 1

(MD010, no-hard-tabs)


205-205: Hard tabs
Column: 1

(MD010, no-hard-tabs)


208-208: Hard tabs
Column: 1

(MD010, no-hard-tabs)


209-209: Hard tabs
Column: 1

(MD010, no-hard-tabs)


252-252: Hard tabs
Column: 1

(MD010, no-hard-tabs)


253-253: Hard tabs
Column: 1

(MD010, no-hard-tabs)


254-254: Hard tabs
Column: 1

(MD010, no-hard-tabs)


255-255: Hard tabs
Column: 1

(MD010, no-hard-tabs)


257-257: Hard tabs
Column: 1

(MD010, no-hard-tabs)


258-258: Hard tabs
Column: 1

(MD010, no-hard-tabs)


259-259: Hard tabs
Column: 1

(MD010, no-hard-tabs)


260-260: Hard tabs
Column: 1

(MD010, no-hard-tabs)


262-262: Hard tabs
Column: 1

(MD010, no-hard-tabs)


263-263: Hard tabs
Column: 1

(MD010, no-hard-tabs)


264-264: Hard tabs
Column: 1

(MD010, no-hard-tabs)


265-265: Hard tabs
Column: 1

(MD010, no-hard-tabs)


266-266: Hard tabs
Column: 1

(MD010, no-hard-tabs)


267-267: Hard tabs
Column: 1

(MD010, no-hard-tabs)


269-269: Hard tabs
Column: 1

(MD010, no-hard-tabs)


270-270: Hard tabs
Column: 1

(MD010, no-hard-tabs)


271-271: Hard tabs
Column: 1

(MD010, no-hard-tabs)


272-272: Hard tabs
Column: 1

(MD010, no-hard-tabs)


276-276: Hard tabs
Column: 1

(MD010, no-hard-tabs)


277-277: Hard tabs
Column: 1

(MD010, no-hard-tabs)


278-278: Hard tabs
Column: 1

(MD010, no-hard-tabs)


280-280: Hard tabs
Column: 1

(MD010, no-hard-tabs)


281-281: Hard tabs
Column: 1

(MD010, no-hard-tabs)


282-282: Hard tabs
Column: 1

(MD010, no-hard-tabs)


283-283: Hard tabs
Column: 1

(MD010, no-hard-tabs)


285-285: Hard tabs
Column: 1

(MD010, no-hard-tabs)


286-286: Hard tabs
Column: 1

(MD010, no-hard-tabs)


287-287: Hard tabs
Column: 1

(MD010, no-hard-tabs)


288-288: Hard tabs
Column: 1

(MD010, no-hard-tabs)


289-289: Hard tabs
Column: 1

(MD010, no-hard-tabs)


290-290: Hard tabs
Column: 1

(MD010, no-hard-tabs)


300-300: Hard tabs
Column: 1

(MD010, no-hard-tabs)


301-301: Hard tabs
Column: 1

(MD010, no-hard-tabs)


302-302: Hard tabs
Column: 1

(MD010, no-hard-tabs)


303-303: Hard tabs
Column: 1

(MD010, no-hard-tabs)


304-304: Hard tabs
Column: 1

(MD010, no-hard-tabs)


306-306: Hard tabs
Column: 1

(MD010, no-hard-tabs)


307-307: Hard tabs
Column: 1

(MD010, no-hard-tabs)


308-308: Hard tabs
Column: 1

(MD010, no-hard-tabs)


309-309: Hard tabs
Column: 1

(MD010, no-hard-tabs)


401-401: Hard tabs
Column: 1

(MD010, no-hard-tabs)


402-402: Hard tabs
Column: 1

(MD010, no-hard-tabs)


403-403: Hard tabs
Column: 1

(MD010, no-hard-tabs)


404-404: Hard tabs
Column: 1

(MD010, no-hard-tabs)


405-405: Hard tabs
Column: 1

(MD010, no-hard-tabs)


406-406: Hard tabs
Column: 1

(MD010, no-hard-tabs)


408-408: Hard tabs
Column: 1

(MD010, no-hard-tabs)


409-409: Hard tabs
Column: 1

(MD010, no-hard-tabs)


410-410: Hard tabs
Column: 1

(MD010, no-hard-tabs)


412-412: Hard tabs
Column: 1

(MD010, no-hard-tabs)


413-413: Hard tabs
Column: 1

(MD010, no-hard-tabs)


414-414: Hard tabs
Column: 1

(MD010, no-hard-tabs)


424-424: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
  • GitHub Check: Build (linux)
  • GitHub Check: Build (macos)
  • GitHub Check: Build (windows)
  • GitHub Check: Lint (golangci)
  • GitHub Check: Analyze (go)
  • GitHub Check: autofix
  • GitHub Check: website-deploy-preview
  • GitHub Check: Review Dependency Licenses
  • GitHub Check: Summary
🔇 Additional comments (2)
docs/prd/opentofu-module-source-interpolation.md (2)

424-424: Specify language for the file tree code fence.

Line 424 has a code block without a language identifier, which violates MD040. Add text or tree as the language:

-```
+```text
opentofu-module-source-interpolation/

1-570: Comprehensive and well-organized PRD.

The document effectively communicates the problem, root cause, solution, and implementation details. The structure (problem statement → background → root cause → solution → testing → documentation) flows logically, making it easy for readers to understand the feature scope. Code examples are clear, and the migration guide shows zero-configuration adoption elegantly.

Minor note: The learnings you referenced (aligned with prior feedback on command detection and follow-up PRs) appear to be reflected in the implementation approach documented here. The document respects the principle of not gating features solely on command names, which aligns with the ecosystem you're building.

@aknysh
Andriy Knysh (aknysh) merged commit cb4e876 into main Nov 6, 2025
@aknysh
Andriy Knysh (aknysh) deleted the fix-cli-vars branch November 6, 2025 15:44
@github-actions

github-actions Bot commented Nov 7, 2025

Copy link
Copy Markdown

These changes were released in v1.198.0-rc.3.

This branch was successfully deployed

No deployments
preview — 6b1374fe Deployed Nov 6, 2025 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch A minor, backward compatible change size/xl Extra large size PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Var file no longer passed to "tofu"

3 participants