Skip to content

Commit c9f26db

Browse files
dependabot[bot]AkihiroSuda
authored andcommitted
build(deps): bump github.com/mikefarah/yq/v4 from 4.41.1 to 4.42.1
Bumps [github.com/mikefarah/yq/v4](https://github.com/mikefarah/yq) from 4.41.1 to 4.42.1. - [Release notes](https://github.com/mikefarah/yq/releases) - [Changelog](https://github.com/mikefarah/yq/blob/master/release_notes.txt) - [Commits](mikefarah/yq@v4.41.1...v4.42.1) --- updated-dependencies: - dependency-name: github.com/mikefarah/yq/v4 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 b1dbefb commit c9f26db

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ require (
3131
github.com/mattn/go-shellwords v1.0.12
3232
github.com/mdlayher/vsock v1.2.1
3333
github.com/miekg/dns v1.1.58
34-
github.com/mikefarah/yq/v4 v4.41.1
34+
github.com/mikefarah/yq/v4 v4.42.1
3535
github.com/nxadm/tail v1.4.11
3636
github.com/opencontainers/go-digest v1.0.0
3737
github.com/pbnjay/memory v0.0.0-20210728143218-7b4eea64cf58

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ github.com/alecthomas/assert/v2 v2.3.0 h1:mAsH2wmvjsuvyBvAmCtm7zFsBlb8mIHx5ySLVd
1616
github.com/alecthomas/assert/v2 v2.3.0/go.mod h1:pXcQ2Asjp247dahGEmsZ6ru0UVwnkhktn7S0bBDLxvQ=
1717
github.com/alecthomas/participle/v2 v2.1.1 h1:hrjKESvSqGHzRb4yW1ciisFJ4p3MGYih6icjJvbsmV8=
1818
github.com/alecthomas/participle/v2 v2.1.1/go.mod h1:Y1+hAs8DHPmc3YUFzqllV+eSQ9ljPTk0ZkPMtEdAx2c=
19-
github.com/alecthomas/repr v0.3.0 h1:NeYzUPfjjlqHY4KtzgKJiWd6sVq2eNUPTi34PiFGjY8=
20-
github.com/alecthomas/repr v0.3.0/go.mod h1:Fr0507jx4eOXV7AlPV6AVZLYrLIuIeSOWtW57eE/O/4=
19+
github.com/alecthomas/repr v0.4.0 h1:GhI2A8MACjfegCPVq9f1FLvIBS+DrQ2KQBFZP1iFzXc=
20+
github.com/alecthomas/repr v0.4.0/go.mod h1:Fr0507jx4eOXV7AlPV6AVZLYrLIuIeSOWtW57eE/O/4=
2121
github.com/alessio/shellescape v1.4.2 h1:MHPfaU+ddJ0/bYWpgIeUnQUqKrlJ1S7BfEYPM4uEoM0=
2222
github.com/alessio/shellescape v1.4.2/go.mod h1:PZAiSCk0LJaZkiCSkPv8qIobYglO3FPpyFjDCtHLS30=
2323
github.com/apparentlymart/go-cidr v1.1.0 h1:2mAhrMoF+nhXqxTzSZMUzDHkLjmIHC+Zzn4tdgBZjnU=
@@ -203,8 +203,8 @@ github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyex
203203
github.com/miekg/dns v1.1.57/go.mod h1:uqRjCRUuEAA6qsOiJvDd+CFo/vW+y5WR6SNmHE55hZk=
204204
github.com/miekg/dns v1.1.58 h1:ca2Hdkz+cDg/7eNF6V56jjzuZ4aCAE+DbVkILdQWG/4=
205205
github.com/miekg/dns v1.1.58/go.mod h1:Ypv+3b/KadlvW9vJfXOTf300O4UqaHFzFCuHz+rPkBY=
206-
github.com/mikefarah/yq/v4 v4.41.1 h1:HIyr+VCctIpiMl/mhplQJkzvsFeEVv7AurigXeX4cuI=
207-
github.com/mikefarah/yq/v4 v4.41.1/go.mod h1:Qpwgwtmrn3XBeeACw0z8brRNBijX8Lw2RIiJFmS0+uE=
206+
github.com/mikefarah/yq/v4 v4.42.1 h1:wqxJzQnKJoU3vFshezkxfLdg+zvjeqZN0BoSj2FX2QM=
207+
github.com/mikefarah/yq/v4 v4.42.1/go.mod h1:7EyF8IDMc9y+jMK5Cp0kTmCgY1071idUm8m+AoVKh3g=
208208
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
209209
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=
210210
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=

pkg/yqutil/yqutil.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ func EvaluateExpression(expression string, content []byte) ([]byte, error) {
3333
logging.SetBackend(backend)
3434
yqlib.InitExpressionParser()
3535

36-
indent := 2
37-
encoder := yqlib.NewYamlEncoder(indent, false, yqlib.ConfiguredYamlPreferences)
36+
encoderPrefs := yqlib.ConfiguredYamlPreferences.Copy()
37+
encoderPrefs.Indent = 2
38+
encoderPrefs.ColorsEnabled = false
39+
encoder := yqlib.NewYamlEncoder(encoderPrefs)
3840
out := new(bytes.Buffer)
3941
printer := yqlib.NewPrinter(encoder, yqlib.NewSinglePrinterWriter(out))
4042
decoder := yqlib.NewYamlDecoder(yqlib.ConfiguredYamlPreferences)

0 commit comments

Comments
 (0)