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

Fix >= 0.12.0 version detection for versions with prereleases #1286

Merged
merged 1 commit into from Dec 4, 2020

Conversation

acastle
Copy link
Contributor

@acastle acastle commented Dec 4, 2020

Resolves #1276

As outlined in hashicorp/go-version#59 go-version Constraints explicitly disallow matches with prerelease versions specified. Most of our other usage of Constraint tend to be for detection of older versions of terraform so there is probably no sense in a global update of these comparisons. In the future it is a good idea for us to opt for the explicit version comparison functions provided by the library.

@codecov
Copy link

codecov bot commented Dec 4, 2020

Codecov Report

Merging #1286 (8d921a7) into master (c08b1a2) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1286   +/-   ##
=======================================
  Coverage   70.05%   70.05%           
=======================================
  Files          71       71           
  Lines        5390     5390           
=======================================
  Hits         3776     3776           
  Misses       1264     1264           
  Partials      350      350           
Impacted Files Coverage Δ
server/events/runtime/plan_step_runner.go 84.34% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c08b1a2...8d921a7. Read the comment docs.

@acastle acastle requested a review from lkysow December 4, 2020 04:38
Copy link
Contributor

@jamengual jamengual left a comment

Choose a reason for hiding this comment

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

LGTM

@acastle acastle merged commit ae7278a into runatlantis:master Dec 4, 2020
@acastle acastle deleted the fix/prerelease-plan-versions branch December 4, 2020 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Terraform 0.14 release candidates are treated as Terraform versions prior to 0.12.0
2 participants