Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 0788304

Browse files
committed
Update vendor related to yatee import
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 9a15e4b commit 0788304

8 files changed

Lines changed: 205 additions & 552 deletions

File tree

Gopkg.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ required = ["github.com/wadey/gocovmerge"]
3535
branch = "master"
3636
source = "github.com/mnottale/cli"
3737

38-
[[constraint]]
39-
name = "github.com/gotestyourself/gotestyourself"
40-
branch = "master"
41-
4238
[[override]]
4339
name = "github.com/spf13/pflag"
4440
revision = "3ebe029320b2676d667ae88da602a5f854788a8a"

internal/yatee/gopher/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package main
22

33
import (
4-
"github.com/docker/app/internal/yatee/yatee"
4+
"github.com/docker/app/internal/yatee"
55
"github.com/gopherjs/gopherjs/js"
66
)
77

internal/yatee/yatee.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ func isIdentNumChar(r byte) bool {
8686
}
8787

8888
// extract extracts an expression from a string
89+
// nolint: gocyclo
8990
func extract(expr string) (string, error) {
9091
if expr == "" {
9192
return "", nil
@@ -206,6 +207,7 @@ func evalExpr(expr string) (int64, error) {
206207
}
207208

208209
// resolves and evaluate all ${foo.bar}, $foo.bar and $(expr) in epr
210+
// nolint: gocyclo
209211
func eval(expr string, flattened map[string]interface{}, o options) (interface{}, error) {
210212
// Since we go from right to left to support nesting, handling $$ escape is
211213
// painful, so just hide them and restore them at the end
@@ -333,6 +335,8 @@ func recurseList(input []interface{}, settings map[string]interface{}, flattened
333335
return res, nil
334336
}
335337

338+
// FIXME complexity on this is 47… get it lower than 16
339+
// nolint: gocyclo
336340
func recurse(input map[interface{}]interface{}, settings map[string]interface{}, flattened map[string]interface{}, o options) (map[interface{}]interface{}, error) {
337341
res := make(map[interface{}]interface{})
338342
for k, v := range input {

internal/yatee/yatee_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package yatee
33
import (
44
"testing"
55

6-
"github.com/gotestyourself/gotestyourself/assert"
76
yaml "gopkg.in/yaml.v2"
7+
"gotest.tools/assert"
88
)
99

1010
func testEval(t *testing.T, input string, env map[string]interface{}, output interface{}) {

0 commit comments

Comments
 (0)