-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Update terraform-config-inspect #2599
Conversation
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.
@@ -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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Looks like the test error says
|
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? |
764622c
to
7abdc6d
Compare
I've removed the second update commit from the branch. |
Thanks @tpickett66 for the contribution |
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.
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.