Skip to content

vendor: go get github.com/zclconf/go-cty@v1.4.0#24621

Merged
alisdair merged 1 commit intomasterfrom
alisdair/upgrade-go-cty
Apr 13, 2020
Merged

vendor: go get github.com/zclconf/go-cty@v1.4.0#24621
alisdair merged 1 commit intomasterfrom
alisdair/upgrade-go-cty

Conversation

@alisdair
Copy link
Copy Markdown
Contributor

@alisdair alisdair commented Apr 9, 2020

This fixes several bugs:

This fixes several bugs:

- `substr("abc", 0, 0)` would previously return `"abc"`, despite the
  length argument being `0`. This has been changed to return an empty
  string when length is zero.

- `ceil(1/0)` and `floor(1/0)` would previously return a large integer
  value, rather than infinity. This has been fixed.
@alisdair alisdair requested a review from a team April 9, 2020 18:26
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 9, 2020

Codecov Report

Merging #24621 into master will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted Files Coverage Δ
states/statefile/version4.go 55.07% <0.00%> (-0.26%) ⬇️

Copy link
Copy Markdown
Contributor

@apparentlymart apparentlymart left a comment

Choose a reason for hiding this comment

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

LGTM! 🌮

This cty upgrade will also take care of the last few things for our switch from Unicode 9 to Unicode 10 in the configuration language, but I already wrote a changelog entry covering that when I merged the corresponding HCL-upgrade PR so I don't think we'll need to say anything additional about it.

@alisdair alisdair merged commit 4cc18ce into master Apr 13, 2020
@alisdair alisdair deleted the alisdair/upgrade-go-cty branch April 13, 2020 13:42
@ghost
Copy link
Copy Markdown

ghost commented May 14, 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 details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators May 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

substr("x", 0, 0) returns "x" instead of "" lang: floor and ceil functions produce incorrect result for positive and negative infinity

2 participants