Conversation
There was a problem hiding this comment.
Cool to see support for OpenTofu! We should probably propose both terraform and opentofu in the output indeed.
To do so we'll have to pull anything that depends on either terraform in their own definition if not already the case (e.g. mkDevShell, while generateJsonSchema or terraformProviders are already in a let-binding), then make them functions taking a terraform package as an argument so that we can pass either opentofu or terraform, instead of relying on pkgs or the ambiant self.terraform.
Since flake outputs are notoriously not parametrizable, it's reasonable to duplicate each output that depends on terraform as a -terraform version and an -opentofu version.
Would that make sense somehow?
|
@yannham thanks, that makes sense!
on merge of #68 i'll rebase on that as well. |
597670d to
fb0d109
Compare
Thanks for your feedback! On the CI, I seem able to reproduce the failure using main branch - this regression seems induced probably by a new |
71a6cbc to
669c163
Compare
|
rebased now |
|
It just needs a |
669c163 to
a570094
Compare
|
thanks, done! |
|
Any idea why those CI checks are failing now? |
It seems so. I wonder if that could be related to NixOS/nixpkgs#376262, which followed @KiaraGrouwstra PR to Nixpkgs. And it turns out the |
|
it seems i broke the check using NixOS/nixpkgs@ffacb08. |
|
@KiaraGrouwstra this is my fixed version: tao3k/omnibus@b16e2e1#diff-80903bc971e622f2452c1ab586eb74110575ac7d785224fb596d0c0706f88fefR19 make sure the |
|
@GTrunSec hm, all those manual overrides were sort of what i'd intended to address :( |
this PR replaces the use of terraform with the open-source fork opentofu, as suggested at #60.
it may be possible to refactor this to take out the ugly patch for the registry (may involve a change over at nixpkgs), but for now i wanted to focus on gathering feedback on the idea first.
while this implementation flat-out replaces the package, i actually hoped to maybe let the user choose, but came up blank with an elegant way to handle that kind of conditional here.