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 1
1
package sprig
2
2
3
3
import (
4
- "github.com/imdario /mergo"
4
+ "dario.cat /mergo"
5
5
"github.com/mitchellh/copystructure"
6
6
)
7
7
@@ -162,7 +162,7 @@ func dig(ps ...interface{}) (interface{}, error) {
162
162
}
163
163
164
164
func 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 :]
166
166
step , has := dict [k ]
167
167
if ! has {
168
168
return d , nil
Original file line number Diff line number Diff line change @@ -3,14 +3,15 @@ module github.com/Masterminds/sprig/v3
3
3
go 1.13
4
4
5
5
require (
6
+ dario.cat/mergo v1.0.0
6
7
github.com/Masterminds/goutils v1.1.1
7
8
github.com/Masterminds/semver/v3 v3.2.0
8
9
github.com/google/uuid v1.1.1
9
10
github.com/huandu/xstrings v1.3.3
10
- github.com/imdario/mergo v0.3.11
11
11
github.com/mitchellh/copystructure v1.0.0
12
12
github.com/shopspring/decimal v1.2.0
13
13
github.com/spf13/cast v1.3.1
14
14
github.com/stretchr/testify v1.5.1
15
15
golang.org/x/crypto v0.3.0
16
+ gopkg.in/yaml.v2 v2.3.0 // indirect
16
17
)
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 =
1
3
github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI =
2
4
github.com/Masterminds/goutils v1.1.1 /go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU =
3
5
github.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=
9
11
github.com/google/uuid v1.1.1 /go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo =
10
12
github.com/huandu/xstrings v1.3.3 h1:/Gcsuc1x8JVbJ9/rlye4xZnVAbEkGauT8lbebqcQws4 =
11
13
github.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 =
14
14
github.com/mitchellh/copystructure v1.0.0 h1:Laisrj+bAB6b/yJwB5Bt3ITZhGJdqmxquMKeZ+mmkFQ =
15
15
github.com/mitchellh/copystructure v1.0.0 /go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw =
16
16
github.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
59
59
gopkg.in/yaml.v2 v2.2.2 /go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI =
60
60
gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU =
61
61
gopkg.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