[TechDebt]: Use flex.Compare
in the skaff
Update
method
#41512
Labels
skaff
Issues and pull requested related to the skaff tool
technical-debt
Addresses areas of the codebase that need refactoring or redesign.
Description
The
internal/framework/flex
package contains aCompare
function for calculating whether state and plan have differences. Theskaff
template for Terraform Plugin Framework based resources should utilize this method for comparing state and plan in the update method rather than the current logic which explicitly compares each argument individually.terraform-provider-aws/skaff/resource/resourcefw.gtpl
Lines 431 to 434 in 23f4b59
terraform-provider-aws/internal/framework/flex/diff.go
Lines 40 to 93 in 23f4b59
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: