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

terraform: Support 0.13 version #149

Merged
merged 1 commit into from Jun 9, 2020
Merged

terraform: Support 0.13 version #149

merged 1 commit into from Jun 9, 2020

Conversation

radeksimko
Copy link
Member

This relaxes the version constraints as we now know where to find the lock file in 0.13+.

This also enables support for any 0.12 prereleases.

Closes #111

I removed the upper bound constraint from the watcher as I reckon/hope that the lock file location won't change - and if it does, then the worst case scenario is that we will report the workspace as uninitialised.

I assume we may start constraining the parser at some point, but that's a problem for another day.

This relaxes the version constraints as we now know
where to find the lock file in 0.13+.

This also enables support for any 0.12 prereleases.
@radeksimko radeksimko added the enhancement New feature or request label Jun 9, 2020

// Assume that alpha/beta/rc prereleases have the same compatibility
segments := rawVer.Segments64()
segmentsOnly := fmt.Sprintf("%d.%d.%d", segments[0], segments[1], segments[2])
Copy link
Member Author

Choose a reason for hiding this comment

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

Perhaps it would be useful to upstream these two lines into go-version as Version.RawVersion() or something like that. Not something I'd want to block this PR on, but thinking out loud.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, I think we should just start implementing this in terraform-exec and see what feels right there. I'd rather not have to have a lot of this stuff in different packages we need to think/worry about and terraform-exec will handle schema dumping, we could also add lock file watching to it, etc.

@paultyng paultyng added this to the v0.4.0 milestone Jun 9, 2020
@radeksimko radeksimko merged commit 0c1e26a into master Jun 9, 2020
@radeksimko radeksimko deleted the f-support-tf-0.13 branch June 9, 2020 16:31
@ghost
Copy link

ghost commented Jul 9, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the context necessary to investigate further.

@hashicorp hashicorp locked and limited conversation to collaborators Jul 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make LS compatible with Terraform v0.13
2 participants