Skip to content

Conversation

@matifali
Copy link
Member

@matifali matifali commented Oct 27, 2025

Summary

  • Updated required_version constraint from >= 1.0 to >= 1.9 in jetbrains module
  • Added inline comment explaining the cross-variable validation requirement
  • Bumped module version from 1.1.0 to 1.1.1 (patch version)

Issue

The jetbrains module uses cross-variable validation at line 169-171 where var.options is referenced within the var.ide_config validation block:

validation { condition = alltrue([ for code in var.options : contains(keys(var.ide_config), code) ]) error_message = "The ide_config must be a superset of var.options." }

This pattern requires Terraform 1.9+ and fails on earlier versions with:

Error: Invalid reference in variable validation The condition for variable "ide_config" can only refer to the variable itself, using var.ide_config. 

References

🤖 Generated with Claude Code

The jetbrains module uses cross-variable validation (referencing var.options within var.ide_config validation) which requires Terraform 1.9 or later. This feature was added in hashicorp/terraform#34955 Bumped module version from 1.1.0 to 1.1.1 (patch bump since latest Coder already requires Terraform 1.9+). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
@matifali matifali added the version:patch Add to PRs requiring a patch version upgrade label Oct 27, 2025
@DevelopmentCats DevelopmentCats merged commit d648517 into main Oct 27, 2025
4 checks passed
@DevelopmentCats DevelopmentCats deleted the fix/jetbrains-terraform-version-requirement branch October 27, 2025 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

version:patch Add to PRs requiring a patch version upgrade

2 participants