Skip to content
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

Update terraform-config-inspect #2599

Merged

Conversation

tpickett66
Copy link
Contributor

Fixes #2598

This package was enough out of date that it wouldn't parse features in the language that were added in the last few releases of TF. This should get things into a state that supports the newer features.

The test suite mostly passes except for those requiring conftest. I installed the latest version using homebrew and it still wasn't found even though it is on $PATH. I looked at the failing test and surrounding code and while the error message says >= 0.25.0 the tests are actually looking for a binary named with that exact version. Adding a symlink to my 0.34.0 installation with the exact name expected allowed the tests to fail with a new error. Fixing this is outside the scope of this PR.

Fixes runatlantis#2598

This package was enough out of date that it wouldn't parse features in
the language that were added in the last few releases of TF. This should
get things into a state that supports the newer features.
@tpickett66 tpickett66 requested a review from a team as a code owner October 19, 2022 14:35
@jamengual jamengual added waiting-on-review Waiting for a review from a maintainer help wanted Good feature for contributors labels Oct 19, 2022
@@ -22,7 +22,7 @@ require (
github.com/gorilla/websocket v1.5.0
github.com/hashicorp/go-getter v1.6.2
github.com/hashicorp/go-version v1.6.0
github.com/hashicorp/terraform-config-inspect v0.0.0-20200806211835-c481b8bfa41e
github.com/hashicorp/terraform-config-inspect v0.0.0-20221012204812-413b69327090
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you update to v0.0.0-20221020162138-81db043ad408 please?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

nitrocode
nitrocode previously approved these changes Oct 27, 2022
@nitrocode nitrocode dismissed their stale review October 27, 2022 20:47

test is failing

@nitrocode
Copy link
Member

Looks like the test error says

/go/pkg/mod/github.com/hashicorp/[email protected]/tfconfig/filesystem.go:93:37: undefined: any
note: module requires Go 1.18

@jamengual
Copy link
Contributor

sorry @tpickett66 the version I gave you does not work with the version of golang we are using, sorry but can you just use the original version you had?

@tpickett66 tpickett66 force-pushed the update-terraform-config-inspect branch from 764622c to 7abdc6d Compare October 28, 2022 14:33
@tpickett66
Copy link
Contributor Author

I've removed the second update commit from the branch.

@jamengual jamengual merged commit c290421 into runatlantis:master Oct 31, 2022
@jamengual
Copy link
Contributor

Thanks @tpickett66 for the contribution

krrrr38 pushed a commit to krrrr38/atlantis that referenced this pull request Dec 16, 2022
Fixes runatlantis#2598

This package was enough out of date that it wouldn't parse features in
the language that were added in the last few releases of TF. This should
get things into a state that supports the newer features.
@nitrocode nitrocode added this to the 0.21.0 milestone Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Good feature for contributors waiting-on-review Waiting for a review from a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Terraform version detection fails when configuration_aliases is specified in a required_providers block
3 participants