terraform-linters / tflint

A Pluggable Terraform Linter
Mozilla Public License 2.0
4.98k stars 357 forks source link

Pin Go patch version in go.mod #2031

Closed wata727 closed 7 months ago

wata727 commented 7 months ago

See https://github.com/terraform-linters/tflint/actions/runs/8924581586/job/24511211255?pr=1991 See https://github.com/golang/go/issues/62278

In Go 1.21+, it seems that the go directive in go.mod must specify the patch version. I haven't been able to dig deeper into why it was working correctly so far, but it seems that at least the problem occurs when you use it with a module that specifies the patch version.