File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed
Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 11package sprig
22
33import (
4- "github.com/imdario /mergo"
4+ "dario.cat /mergo"
55 "github.com/mitchellh/copystructure"
66)
77
@@ -162,7 +162,7 @@ func dig(ps ...interface{}) (interface{}, error) {
162162}
163163
164164func digFromDict (dict map [string ]interface {}, d interface {}, ks []string ) (interface {}, error ) {
165- k , ns := ks [0 ], ks [1 :len ( ks ) ]
165+ k , ns := ks [0 ], ks [1 :]
166166 step , has := dict [k ]
167167 if ! has {
168168 return d , nil
Original file line number Diff line number Diff line change @@ -3,14 +3,15 @@ module github.com/Masterminds/sprig/v3
33go 1.13
44
55require (
6+ dario.cat/mergo v1.0.0
67 github.com/Masterminds/goutils v1.1.1
78 github.com/Masterminds/semver/v3 v3.2.0
89 github.com/google/uuid v1.1.1
910 github.com/huandu/xstrings v1.3.3
10- github.com/imdario/mergo v0.3.11
1111 github.com/mitchellh/copystructure v1.0.0
1212 github.com/shopspring/decimal v1.2.0
1313 github.com/spf13/cast v1.3.1
1414 github.com/stretchr/testify v1.5.1
1515 golang.org/x/crypto v0.3.0
16+ gopkg.in/yaml.v2 v2.3.0 // indirect
1617)
Original file line number Diff line number Diff line change 1+ dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk =
2+ dario.cat/mergo v1.0.0 /go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk =
13github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI =
24github.com/Masterminds/goutils v1.1.1 /go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU =
35github.com/Masterminds/semver/v3 v3.2.0 h1:3MEsd0SM6jqZojhjLWWeBY+Kcjy9i6MQAeY7YgDP83g =
@@ -9,8 +11,6 @@ github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY=
911github.com/google/uuid v1.1.1 /go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo =
1012github.com/huandu/xstrings v1.3.3 h1:/Gcsuc1x8JVbJ9/rlye4xZnVAbEkGauT8lbebqcQws4 =
1113github.com/huandu/xstrings v1.3.3 /go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE =
12- github.com/imdario/mergo v0.3.11 h1:3tnifQM4i+fbajXKBHXWEH+KvNHqojZ778UH75j3bGA =
13- github.com/imdario/mergo v0.3.11 /go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA =
1414github.com/mitchellh/copystructure v1.0.0 h1:Laisrj+bAB6b/yJwB5Bt3ITZhGJdqmxquMKeZ+mmkFQ =
1515github.com/mitchellh/copystructure v1.0.0 /go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw =
1616github.com/mitchellh/reflectwalk v1.0.0 h1:9D+8oIskB4VJBN5SFlmc27fSlIBZaov1Wpk/IfikLNY =
@@ -59,3 +59,5 @@ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8
5959gopkg.in/yaml.v2 v2.2.2 /go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI =
6060gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU =
6161gopkg.in/yaml.v2 v2.3.0 /go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI =
62+ gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA =
63+ gopkg.in/yaml.v3 v3.0.1 /go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM =
You can’t perform that action at this time.
0 commit comments