Skip to content

Commit

Permalink
build(deps): bump github.com/zclconf/go-cty from 1.13.2 to 1.15.1 in …
Browse files Browse the repository at this point in the history
…/pkg (#1490)

Bumps [github.com/zclconf/go-cty](https://github.com/zclconf/go-cty)
from 1.13.2 to 1.15.1.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/zclconf/go-cty/blob/main/CHANGELOG.md">github.com/zclconf/go-cty's
changelog</a>.</em></p>
<blockquote>
<h1>1.15.1 (November 26, 2024)</h1>
<ul>
<li><code>function</code>: Function calls can now return more
mark-related information when called with unknown values when neither
<code>AllowMarks</code> nor <code>AllowUnknown</code> are set for a
particular parameter. (<a
href="https://redirect.github.com/zclconf/go-cty/pull/196">#196</a>)</li>
</ul>
<h1>1.15.0 (July 15, 2024)</h1>
<ul>
<li><code>function/stdlib</code>: The <code>element</code> function now
accepts negative indices, extending the illusion of an infinitely-long
list into the negative direction too.</li>
<li><code>cty</code>: The various &quot;transform&quot; functions were
previously incorrectly propagating marks from a parent object down to
attribute values when calling the caller-provided transform functions.
The marks will now no longer be propagated downwards, which is
consistent with the treatment of collection and tuple elements. If your
transform function needs to take into account context about marks of
upstream containers then you can maintain a stack of active marks in
your <code>Transformer</code> implementation, pushing in
<code>Enter</code> and popping in <code>Exit</code>. (<a
href="https://redirect.github.com/zclconf/go-cty/pull/185">#185</a>)</li>
</ul>
<h1>1.14.4 (March 20, 2024)</h1>
<ul>
<li><code>msgpack</code>: Now uses string encoding instead of float
encoding for a whole number that is too large to fit in any of
MessagePack's integer types.</li>
<li><code>function/stdlib</code>: Type conversion functions (constructed
with <code>MakeToFunc</code>) can now convert null values of unknown
type into null values of the target type, rather than returning an
unknown value in that case.</li>
<li><code>json</code>: Will now correctly reject attempts to encode
<code>cty.DynamicVal</code>, whereas before it would just produce an
invalid JSON document without any error. (This is invalid because JSON
encoding cannot support unknown values at all;
<code>cty.DynamicVal</code> is a special case of unknown value where
even the <em>type</em> isn't known.)</li>
</ul>
<h1>1.14.3 (February 29, 2024)</h1>
<ul>
<li><code>msgpack</code>: Fixed edge-case bug that could cause loss of
floating point precision when round-tripping due to incorrectly using a
MessagePack integer to represent a large non-integral number. <a
href="https://redirect.github.com/zclconf/go-cty/pull/176">#176</a></li>
<li><code>cty</code>: Fixed some false-negative numeric equality test
results by comparing numbers as integers when possible. <a
href="https://redirect.github.com/zclconf/go-cty/pull/176">#176</a></li>
</ul>
<h1>1.14.2 (January 23, 2024)</h1>
<ul>
<li><code>convert</code>: Converting from an unknown map value to an
object type now correctly handles the situation where the map element
type disagrees with an <em>optional</em> attribute of the target type,
since when a map value is unknown we don't yet know which keys it has
and thus cannot predict what subset of the elements will get converted
as attributes in the resulting object. (<a
href="https://redirect.github.com/zclconf/go-cty/pull/175">#175</a>)</li>
</ul>
<h1>1.14.1 (October 5, 2023)</h1>
<ul>
<li>
<p><code>cty</code>: It's now valid to use the <code>Refine</code>
method on <code>cty.DynamicVal</code>, although all refinements will be
silently discarded. This replaces the original behavior of panicking
when trying to refine <code>cty.DynamicVal</code>.</p>
</li>
<li>
<p><code>cty</code>: <code>Value.Range</code> will now return a clearer
panic message if called on a marked value. The &quot;value range&quot;
concept is only applicable to unmarked values because not all of the
<code>ValueRange</code> functions are able to propagate marks into their
return values, due to returning Go primitive types instead of new
<code>cty.Value</code> results.</p>
<p>Callers that use marks must, as usual, take care to unmark them
before exporting values into &quot;normal&quot; Go types, and then
explicitly re-apply the marks to their result as appropriate.
Applications that make no use of value marks, and library callers that
exclude marked values from what they support, can safely ignore this
requirement.</p>
</li>
</ul>
<h1>1.14.0 (August 30, 2023)</h1>
<p>This release updates the supported version of Unicode from Unicode 13
to Unicode 15. This is a backwards-compatible change that means that cty
supports normalization and segmentation of strings containing new
Unicode characters. The algorithms for normalization and segmentation
themselves are unchanged.</p>
<p>If you use <code>cty</code> in an application that cares about
consistent Unicode support, you should upgrade to Go 1.21 at the same
time as updating to <code>cty</code> v1.14, because that will then also
update the Unicode tables embedded in the Go standard library (used for
case folding, etc).</p>
<ul>
<li><code>cty</code>: The <code>cty.String</code> type will now
normalize incoming string values using the Unicode 15 normalization
rules.</li>
<li><code>function/stdlib</code>: The various string functions which
split strings into individual characters as part of their work will now
use the Unicode 15 version of the text segmentation algorithm to do
so.</li>
</ul>
<h1>1.13.3 (August 24, 2023)</h1>
<ul>
<li>
<p><code>msgpack</code>: As a compromise to avoid unbounded memory usage
for a situation that some callers won't take advantage of anyway, the
MessagePack decoder has a maximum length limit on encoded unknown value
refinements. For consistency, the encoder will now truncate string
prefix refinements if necessary to avoid making the encoded refinements
too long. (<a
href="https://redirect.github.com/zclconf/go-cty/pull/167">#167</a>)</p>
<p>This is consistent with the documented conventions for serializing
refinements -- that we can potentially lose detail through serialization
-- but in this case we are still able to preserve shorter string
prefixes, whereas other serializations tend to just discard refinement
information altogether.</p>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/zclconf/go-cty/commit/3149f9d71235e7f745ab0a8429dba3c362408c06"><code>3149f9d</code></a>
Prepare for v1.15.1 release</li>
<li><a
href="https://github.com/zclconf/go-cty/commit/63279be090d7ca5fd01e5ecb7f02ac5f0c273ef2"><code>63279be</code></a>
Update CHANGELOG.md</li>
<li><a
href="https://github.com/zclconf/go-cty/commit/da16ad4791eda831a83c2f336863ba12fb8c264c"><code>da16ad4</code></a>
function: include marks when returning early with an unknown value</li>
<li><a
href="https://github.com/zclconf/go-cty/commit/ea922e7a95ba2be57897697117f318670e066d22"><code>ea922e7</code></a>
Add GitHub's &quot;funding&quot; metadata file</li>
<li><a
href="https://github.com/zclconf/go-cty/commit/7313684bb2bf6ec4a464f3def8d60c23bb51123a"><code>7313684</code></a>
function/stdlib: Even more Distinct tests</li>
<li><a
href="https://github.com/zclconf/go-cty/commit/b84388474441497515a24c6e5e94b9d32673a59e"><code>b843884</code></a>
function/stdlib: unit tests for Distinct function</li>
<li><a
href="https://github.com/zclconf/go-cty/commit/0b7ccb8423606ba894cc0e3b71375386e4d564de"><code>0b7ccb8</code></a>
docs: fix little typo in value marks</li>
<li><a
href="https://github.com/zclconf/go-cty/commit/9a4ed1eca4e031e6fc36475d3f3cfb861c7be2d6"><code>9a4ed1e</code></a>
Prepare for possible future v1.15.1 release</li>
<li><a
href="https://github.com/zclconf/go-cty/commit/d4f26339594ac24f77ff96b3f1eb0fc5f31c0a5a"><code>d4f2633</code></a>
v1.15.0 release</li>
<li><a
href="https://github.com/zclconf/go-cty/commit/0cccfb9e9a8d1377cb50b6608f43d609376ccf80"><code>0cccfb9</code></a>
Update CHANGELOG.md</li>
<li>Additional commits viewable in <a
href="https://github.com/zclconf/go-cty/compare/v1.13.2...v1.15.1">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/zclconf/go-cty&package-manager=go_modules&previous-version=1.13.2&new-version=1.15.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

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 merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@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)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Dec 24, 2024
1 parent eb31dd9 commit b76c0d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions pkg/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ require (
github.com/pulumi/pulumi/sdk/v3 v3.143.0
github.com/spf13/cobra v1.8.1
github.com/stretchr/testify v1.9.0
github.com/zclconf/go-cty v1.13.2
github.com/zclconf/go-cty v1.15.1
golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8
google.golang.org/grpc v1.67.1
google.golang.org/protobuf v1.35.1
Expand All @@ -45,7 +45,6 @@ require (
github.com/ProtonMail/go-crypto v1.0.0 // indirect
github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect
github.com/agext/levenshtein v1.2.3 // indirect
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
github.com/atotto/clipboard v0.1.4 // indirect
github.com/aws/aws-sdk-go v1.50.36 // indirect
Expand Down
6 changes: 2 additions & 4 deletions pkg/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7l
github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558=
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFIImctFaOjnTIavg87rW78vTPkQqLI8=
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4=
github.com/apparentlymart/go-textseg/v13 v13.0.0 h1:Y+KvPE1NYz0xl601PVImeQfFyEy6iT90AvPUL1NNfNw=
github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo=
github.com/apparentlymart/go-textseg/v15 v15.0.0 h1:uYvfpb3DyLSCGWnctWKGj857c6ew1u1fNQOlOtuGxQY=
github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmmsvpAG721bKi0joRfFdHIWJ4=
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=
Expand Down Expand Up @@ -524,8 +522,8 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
github.com/zclconf/go-cty v1.13.2 h1:4GvrUxe/QUDYuJKAav4EYqdM47/kZa672LwmXFmEKT0=
github.com/zclconf/go-cty v1.13.2/go.mod h1:YKQzy/7pZ7iq2jNFzy5go57xdxdWoLLpaEp4u238AE0=
github.com/zclconf/go-cty v1.15.1 h1:RgQYm4j2EvoBRXOPxhUvxPzRrGDo1eCOhHXuGfrj5S0=
github.com/zclconf/go-cty v1.15.1/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE=
github.com/zclconf/go-cty-debug v0.0.0-20240509010212-0d6042c53940 h1:4r45xpDWB6ZMSMNJFMOjqrGHynW3DIBuR2H9j0ug+Mo=
github.com/zclconf/go-cty-debug v0.0.0-20240509010212-0d6042c53940/go.mod h1:CmBdvvj3nqzfzJ6nTCIwDTPZ56aVGvDrmztiO5g3qrM=
go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
Expand Down

0 comments on commit b76c0d1

Please sign in to comment.