-
Notifications
You must be signed in to change notification settings - Fork 937
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Dependabot for update automation #1236
Comments
Also interested in this. |
Just wanted to update people here, We've been really busy lately but this is high up on my TODO list and it will be tackled soon! |
Thanks so much! For us, this is the biggest pain point in the transition from Terraform to OpenTofu. Honestly, the only pain point since the rest was so easy! |
Could I request an update on this request please? With the advent on OpenTofu v1.8, specifically its early-evaluation of variables, Dependabot's
Taken from Dependabot's workflow log. |
Combining this with #586 is where things will get really good. We are currently implementing Renovate with static versions in our Terraform code but I'd love it if my developers could set constraints in the |
As far as I know we've not been able to prioritize this for the OpenTofu Core team just yet, but it seems like the existing support for Terraform in OpenTofu was entirely community contributed and so it seems like the Dependabot folks don't require that these integrations be maintained by the same folks that are maintaining the corresponding toolchain and so if someone interested in this issue wanted to follow their instructions in Contributing new ecosystems to get this discussion started, that seems like it should be fine. I note that at the time of writing there seem to be a lot of open issues related to dependabot's Terraform support, and so I wouldn't be surprised if the Dependabot folks say that they'd rather share as much code as possible between these two ecosystems to avoid effectively duplicating that entire backlog of work. 😖 But starting the discussion seems like the main thing, and then we (the OpenTofu community at large and the core team) can react to whatever the maintainers suggest. We do still need to figure out how to reconcile the fact that OpenTofu v1.8 made module dependencies potentially require input variables for the first time, but that's a design detail we can discuss once we have a better idea of how the Dependabot maintainers would prefer this work to happen. |
Appreciate your input, @apparentlymart. Hoping to clarify a few deets, if that's alright.
While I get wanting to minimise duplication, these statements conflict with each other. The advent of OpenTofu v1.8's early evaluation of variables (including module versions) is exactly what necessitates this request. And it's this same unique feature of OpenTofu which makes it somewhat incompatible with Terraform's subpar implementation. While community-driven contribution would be stellar, I wonder if Dependabot support might be a core priority, given that it's currently number 10 on the top-ranked issues.
Totally agreed, and raised during 2025-01-15 Public Engineering Sync to discover there may be some progress on this already. |
OpenTofu Version
Use Cases
For keeping up-to-date with the regular flow of dependency updates across all providers.
Attempted Solutions
Using
terraform
in dependabot.yml which, let's be frank, is "eugh" in 2024.It's also interesting to note the supported version range is only
>= 0.13, <= 1.5.x
; I wonder why that may be...Proposal
Use
opentofu
within dependabot.yml instead as a 1-to-1 replacement!Following today's public dev-sync, here's a link to the current handling of dependabot-terraform (with a dash of Ruby).
References
https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/about-dependabot-version-updates#supported-repositories-and-ecosystems
The text was updated successfully, but these errors were encountered: