Skip to content

build(deps): bump github.com/zclconf/go-cty from 1.19.0 to 1.20.0 - #203

Merged
konih merged 1 commit into
mainfrom
dependabot/go_modules/github.com/zclconf/go-cty-1.20.0
Nov 16, 2026
Merged

konih merged 1 commit into
mainfrom
dependabot/go_modules/github.com/zclconf/go-cty-1.20.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Bumps github.com/zclconf/go-cty from 1.19.0 to 1.20.0.

Changelog

Sourced from github.com/zclconf/go-cty's changelog.

1.20.0

This release introduces a new concept called provenance marks, which is a subcategory of marks that get more conservative treatment in how they are propagated through operations involving unknown values.

Alongside that, it's now possible for an unknown value to track both direct marks (as before) and an approximation of what marks could be nested inside a final known value in the same position. This means that for unknown values it's now possible for Value.UnmarkDeep to return a larger set of marks than Value.Unmark, just as for known collection and structural values. This is an approximation, though: it tracks only that a certain mark could potentially appear anywhere within the final object, not a specific path where it will appear. This is just enough complexity to preserve the presence of nested provenance marks, at the expense of being more conservative in how marks might propagate in subsequent operations.

The development of the functionality related to provenance marks was sponsored by Spacelift on behalf of the OpenTofu Project, which is intending to make more extensive use of marks to track dependencies by dynamic analysis instead of by simply searching for syntactic references to other objects. That mechanism relies on the assumption that an operation involving unknown values will produce an unknown result that has the superset of all possible dependency marks that could appear on a subsequent re-run of the same operation with known operands, which is what the more conservative treatment of provenance marks is intended to achieve.

Other smaller changes in this release:

  • The new cty.Value.GetAttrByValue is like cty.Value.GetAttr except that it takes the attribute name as cty.Value instead of string, and can therefore implement a reasonable reaction to the attribute name being unknown for calling applications that support dynamically-chosen attribute names.
  • numeric refinement now correctly rejects combinations of exclusive bounds with equal values that effectively exclude the entire range of number values. (#228)
  • cty.Object, cty.ObjectVal, and cty.MapVal now all require the caller to ensure that no two attribute names or keys normalize to the same cty string, whereas before they all just nondeterministically selected any one of the conflicting attribute types. (#225)
  • stdlib: SignumFunc now works with any number cty can represent, whereas before it was unnecessarily limited only to numbers that could be converted to Go's int type. (#218)
  • json: Unmarshal no longer panics when a JSON array being decoded into a tuple type has too few elements. (#230)
Commits
  • 84874ac Prepare for v1.20.0 release
  • 10d8b1a cty: Deal with some more nested-marks-related cases
  • 18f27de cty: Discard refinements that turn out to be useless
  • 067b731 cty: Detect and reject conflicting attribute/key names
  • 9a1f940 cty: numeric refinement now correctly rejects invalid exclusive bounds
  • 0ea9692 json: Don't panic when there aren't enough tuple elements
  • f3c1f4b CHANGELOG entry for provenance marks and nested marks in unknown vals
  • e2a5974 Provenance marks, unknown values with nested marks, etc
  • 3f9ace7 Documentation for "Provenance Marks"
  • 1658b7a cty: MarkWithPaths only applies provenance marks inside unknown values
  • Additional commits viewable in compare view

@dependabot
dependabot Bot requested a review from konih as a code owner November 10, 2026 02:06
@dependabot @github

dependabot Bot commented on behalf of github Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: dependencies. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@konih

konih commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

@dependabot rebase

@konih
konih force-pushed the dependabot/go_modules/github.com/zclconf/go-cty-1.20.0 branch from 1b9506e to 383348a Compare November 16, 2026 09:32
@konih

konih commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

@dependabot rebase

@dependabot @github

dependabot Bot commented on behalf of github Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

Looks like this PR has been edited by someone other than Dependabot. That means Dependabot can't rebase it - sorry!

If you're happy for Dependabot to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

@konih

konih commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

@dependabot recreate

@dependabot
dependabot Bot force-pushed the dependabot/go_modules/github.com/zclconf/go-cty-1.20.0 branch from 383348a to 5cc12de Compare November 16, 2026 10:30
Bumps [github.com/zclconf/go-cty](https://github.com/zclconf/go-cty) from 1.19.0 to 1.20.0.
- [Release notes](https://github.com/zclconf/go-cty/releases)
- [Changelog](https://github.com/zclconf/go-cty/blob/main/CHANGELOG.md)
- [Commits](zclconf/go-cty@v1.19.0...v1.20.0)

---
updated-dependencies:
- dependency-name: github.com/zclconf/go-cty
  dependency-version: 1.20.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@konih
konih force-pushed the dependabot/go_modules/github.com/zclconf/go-cty-1.20.0 branch from 5cc12de to 3ba1509 Compare November 16, 2026 10:44
@sonarqubecloud

Copy link
Copy Markdown

@konih
konih merged commit 5eb939c into main Nov 16, 2026
8 checks passed
@konih
konih deleted the dependabot/go_modules/github.com/zclconf/go-cty-1.20.0 branch November 16, 2026 10:51
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.

1 participant