Skip to content

build(deps): bump github.com/zclconf/go-cty from 1.17.0 to 1.18.0#1729

Merged
prymitive merged 1 commit intomainfrom
dependabot/go_modules/github.com/zclconf/go-cty-1.18.0
Mar 2, 2026
Merged

build(deps): bump github.com/zclconf/go-cty from 1.17.0 to 1.18.0#1729
prymitive merged 1 commit intomainfrom
dependabot/go_modules/github.com/zclconf/go-cty-1.18.0

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 2, 2026

Bumps github.com/zclconf/go-cty from 1.17.0 to 1.18.0.

Changelog

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

1.18.0 (February 23, 2026)

cty now requires Go 1.25 or later.

  • cty.Value.Equals now has a special case where if a null value is compared with a non-null value then only top-level marks from the non-null value will transfer to the boolean result.

    This is a limited introduction of the idea that only the parts of a nested data structure that were actually relevant to the comparison should transfer to the result. The more general form of that idea might follow in a later release, but that would require some more severe refactoring of this method's implementation that would be far riskier and so this is a pragmatic compromise to support just the relatively-common case of comparing with null in callers like HCL where an equality test is the canonical way to test a value for "null-ness".

  • cty.IndexStep.Apply now works for traversing through a set.

    Although cty.Value.Index does not allow looking up a set element due to set elements not having indices, we often use cty.Path to describe a specific location in a nested structure and have a convention of handling traversal through a set as a cty.IndexStep whose "key" is the set element's value.

    To make that work a little better with code that uses cty.Path.Apply on such paths, cty.IndexStep now has a special case where if the given value is a set then it checks whether the index step's key is a member of the set and returns that value if so. If unknown values mean that it's not decidable whether there is a matching element then the result is an unknown value of the set's element type, so that traversal can continue and presumably eventually return an unknown value of the appropriate leaf type.

Commits
  • e0c742b v1.18.0 release
  • 21d455d Update LICENSE to reflect the current situation
  • a6629d6 cty: IndexStep.Apply now works for traversing through a set
  • d586d11 cty: Value.Equals only keeps shallow marks when comparing to null
  • 2cc7315 go.mod: Require Go 1.25 or later
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Mar 2, 2026
@dependabot dependabot bot requested a review from prymitive as a code owner March 2, 2026 21:43
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Mar 2, 2026
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This pull request was validated by pint.

✔️ No problems found

Stats

Stat Value
Version v0.79.0-52-g48d11e08
Number of rules parsed 9
Number of rules checked 9
Number of problems found 0
Number of offline checks 0
Number of online checks 0
Checks duration 0

Problems

No problems reported

@codecov-commenter
Copy link

codecov-commenter commented Mar 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.56%. Comparing base (0edcd78) to head (48d11e0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1729   +/-   ##
=======================================
  Coverage   99.56%   99.56%           
=======================================
  Files         109      109           
  Lines       13215    13215           
=======================================
  Hits        13158    13158           
  Misses         32       32           
  Partials       25       25           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link

github-actions bot commented Mar 2, 2026

Benchmark diff:

goos: linux
goarch: amd64
pkg: github.com/cloudflare/pint/cmd/pint
cpu: Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz
                    │   old.txt   │              new.txt               │
                    │   sec/op    │   sec/op     vs base               │
GlobFinder-4          17.14m ± 3%   17.16m ± 1%       ~ (p=0.481 n=10)
GitFinder-4           281.1m ± 0%   284.4m ± 0%  +1.16% (p=0.000 n=10)
CheckRules-4           9.656 ± 2%    9.649 ± 1%       ~ (p=0.739 n=10)
RuleIsIdentical-4     4.528m ± 0%   4.480m ± 1%  -1.06% (p=0.000 n=10)
GetChecksForEntry-4   108.2m ± 2%   107.8m ± 1%       ~ (p=0.218 n=10)
geomean               117.9m        117.9m       -0.04%

                    │     old.txt     │                new.txt                 │
                    │      B/op       │     B/op       vs base                 │
GlobFinder-4           7.134Mi ± 0%      7.133Mi ± 0%       ~ (p=0.075 n=10)
GitFinder-4            16.09Mi ± 1%      16.09Mi ± 1%       ~ (p=0.971 n=10)
CheckRules-4          1021.8Mi ± 1%     1022.9Mi ± 0%       ~ (p=0.853 n=10)
RuleIsIdentical-4        0.000 ± 0%        0.000 ± 0%       ~ (p=1.000 n=10) ¹
GetChecksForEntry-4    56.55Mi ± 0%      56.55Mi ± 0%       ~ (p=0.912 n=10)
geomean                             ²                  +0.02%                ²
¹ all samples are equal
² summaries must be >0 to compute geomean

                    │    old.txt    │               new.txt                │
                    │   allocs/op   │  allocs/op   vs base                 │
GlobFinder-4          111.0k ± 0%     111.0k ± 0%       ~ (p=1.000 n=10)
GitFinder-4           148.7k ± 0%     148.7k ± 0%       ~ (p=0.616 n=10)
CheckRules-4          14.62M ± 0%     14.63M ± 0%       ~ (p=0.971 n=10)
RuleIsIdentical-4      0.000 ± 0%      0.000 ± 0%       ~ (p=1.000 n=10) ¹
GetChecksForEntry-4   916.3k ± 0%     916.3k ± 0%       ~ (p=0.747 n=10)
geomean                           ²                +0.01%                ²
¹ all samples are equal
² summaries must be >0 to compute geomean

pkg: github.com/cloudflare/pint/internal/parser
        │   old.txt   │            new.txt            │
        │   sec/op    │   sec/op     vs base          │
Parse-4   15.51m ± 1%   15.43m ± 1%  ~ (p=0.075 n=10)

        │   old.txt    │            new.txt             │
        │     B/op     │     B/op      vs base          │
Parse-4   6.306Mi ± 0%   6.306Mi ± 0%  ~ (p=0.382 n=10)

        │   old.txt   │             new.txt             │
        │  allocs/op  │  allocs/op   vs base            │
Parse-4   102.7k ± 0%   102.7k ± 0%  ~ (p=1.000 n=10) ¹
¹ all samples are equal

pkg: github.com/cloudflare/pint/internal/parser/source
               │   old.txt   │            new.txt            │
               │   sec/op    │   sec/op     vs base          │
LabelsSource-4   5.343m ± 3%   5.360m ± 1%  ~ (p=0.190 n=10)

               │   old.txt    │            new.txt             │
               │     B/op     │     B/op      vs base          │
LabelsSource-4   4.441Mi ± 0%   4.443Mi ± 0%  ~ (p=0.353 n=10)

               │   old.txt   │            new.txt            │
               │  allocs/op  │  allocs/op   vs base          │
LabelsSource-4   36.35k ± 0%   36.35k ± 0%  ~ (p=0.491 n=10)

pkg: github.com/cloudflare/pint/internal/promapi
                    │   old.txt   │            new.txt            │
                    │   sec/op    │   sec/op     vs base          │
QueryCacheOnlySet-4   97.12n ± 1%   97.42n ± 1%  ~ (p=0.054 n=10)

                    │  old.txt   │            new.txt             │
                    │    B/op    │    B/op     vs base            │
QueryCacheOnlySet-4   64.00 ± 0%   64.00 ± 0%  ~ (p=1.000 n=10) ¹
¹ all samples are equal

                    │  old.txt   │            new.txt             │
                    │ allocs/op  │ allocs/op   vs base            │
QueryCacheOnlySet-4   1.000 ± 0%   1.000 ± 0%  ~ (p=1.000 n=10) ¹
¹ all samples are equal

@prymitive prymitive enabled auto-merge March 2, 2026 21:52
Bumps [github.com/zclconf/go-cty](https://github.com/zclconf/go-cty) from 1.17.0 to 1.18.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.17.0...v1.18.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/go_modules/github.com/zclconf/go-cty-1.18.0 branch from a58b682 to 48d11e0 Compare March 2, 2026 21:52
@prymitive prymitive merged commit 4f52d2a into main Mar 2, 2026
18 checks passed
@prymitive prymitive deleted the dependabot/go_modules/github.com/zclconf/go-cty-1.18.0 branch March 2, 2026 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants