chore: update go dependencies #212
Loading…
Reference in a new issue
No description provided.
Delete branch "updatarr/go-dependencies-c171078cda"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Updates
go dependencies.Automerge: Enabled
Changed files:
go.mod:17v1.2.1->v1.2.3go.mod:28v1.16.3->v1.19.0go.mod:30v0.38.0->v0.40.0go.mod:34v0.0.0-20231012003039-104605ab7028->v0.0.0-20240903120638-7835f813f4daRelease notes
v1.2.2: github.com/agext/levenshtein: v1.2.2Compare source
Enable modules; update CI settings
v1.2.3: github.com/agext/levenshteinCompare source
Fix issue #3
v1.17.0: github.com/zclconf/go-cty: v1.17.0Compare source
ctynow requires Go 1.23 or later.cty.Value.Elementsoffers a moderniter.Seq2-based equivalent ofcty.Value.ElementIterator.cty.DeepValuesoffers a moderniter.Seq2-based equivalent ofcty.Walk.cty.Value.WrangleMarksDeepallows inspecting and modifying individual marks throughout a possibly-nested data structure.Having now got some experience using marks more extensively in some callers, it's become clear that it's often necessary for different subsystems to be able to collaborate using independent marks without upsetting each other's assumptions. Today that tends to be achieved using hand-written transforms either with
cty.Transformorcty.Value.UnmarkDeepWithPaths/cty.Value.MarkWithPaths, both of which can be pretty expensive even in the common case where there are no marks present at all.This new function allows inspecting and transforming marks with far less overhead, by creating new values only for parts of a structure that actually need to change and by reusing (rather than recreating) the "payloads" of the values being modified when we know that only the marks have changed.
cty.ValueMarksOfTypeandcty.ValueMarksOfTypeDeepmake it easier to use type-based rather than value-based mark schemes, where different values of a common type are used to track a specific kind of relationship with multiple external values.cty.Value.HasMarkDeepprovides a "deep" version of the existingcty.Value.HasMark, searching throughout a possibly-nested structure for any values that have the given mark.cty.Value.UnmarkDeepandcty.Value.UnmarkDeepWithPathsare now implemented in terms ofcty.Value.WrangleMarksDeep, so they benefit from its reduced overhead. In particular they avoid reconstructing a data structure that contains no marked values at all.cty.Value.MarkWithPathsnow has a fast path when it's given a zero-lengthPathValueMarks, in which case it just returns the value it was given with no modifications.bb1fcafbce4c541608e0