Skip to content

Commit bfafaef

Browse files
dependabot[bot]AkihiroSuda
authored andcommitted
build(deps): bump github.com/google/yamlfmt from 0.13.0 to 0.14.0
Bumps [github.com/google/yamlfmt](https://github.com/google/yamlfmt) from 0.13.0 to 0.14.0. - [Release notes](https://github.com/google/yamlfmt/releases) - [Changelog](https://github.com/google/yamlfmt/blob/main/.goreleaser.yaml) - [Commits](google/yamlfmt@v0.13.0...v0.14.0) --- updated-dependencies: - dependency-name: github.com/google/yamlfmt dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Akihiro Suda <[email protected]>
1 parent f322d11 commit bfafaef

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ require (
2323
github.com/foxcpp/go-mockdns v1.1.0
2424
github.com/goccy/go-yaml v1.13.4
2525
github.com/google/go-cmp v0.6.0
26-
github.com/google/yamlfmt v0.13.0
26+
github.com/google/yamlfmt v0.14.0
2727
github.com/invopop/jsonschema v0.12.0
2828
github.com/lima-vm/go-qcow2reader v0.3.0
2929
github.com/lima-vm/sshocker v0.3.4

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaU
140140
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ=
141141
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
142142
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
143-
github.com/google/yamlfmt v0.13.0 h1:OS8cjQNhRhEP437e1axMgZiwrYu60mWLtvb4/jtQCtE=
144-
github.com/google/yamlfmt v0.13.0/go.mod h1:y8JNH/2TqTaCSUjk/zhn0lYlibMvS0R+pbVUDo8oz9o=
143+
github.com/google/yamlfmt v0.14.0 h1:30Hm8+VfNqMhWfbkjqkHMyo1zzbxMFM6+2oz7Cey1BQ=
144+
github.com/google/yamlfmt v0.14.0/go.mod h1:KnrVZqRVSE3HUpaI9FfoaxYA71izVleMWPYX8s1S0KM=
145145
github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM=
146146
github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg=
147147
github.com/hinshun/vt10x v0.0.0-20220119200601-820417d04eec h1:qv2VnGeEQHchGaZ/u7lxST/RaJw+cv273q79D81Xbog=

pkg/yqutil/yqutil.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package yqutil
22

33
import (
44
"bytes"
5+
"context"
56
"errors"
67
"fmt"
78
"io"
@@ -51,7 +52,7 @@ func EvaluateExpression(expression string, content []byte) ([]byte, error) {
5152
// once here and once inside `formatter.Format`.
5253
// Currently, calling `ApplyFeatures()` with `FeatureApplyBefore` twice is not an issue,
5354
// but future changes to `yamlfmt` might cause problems if it is called twice.
54-
contentModified, err := formatter.Features.ApplyFeatures(content, yamlfmt.FeatureApplyBefore)
55+
_, contentModified, err := formatter.Features.ApplyFeatures(context.Background(), content, yamlfmt.FeatureApplyBefore)
5556
if err != nil {
5657
return nil, err
5758
}

0 commit comments

Comments
 (0)