Skip to content

Commit

Permalink
use %v instead of %s to string format a slice
Browse files Browse the repository at this point in the history
  • Loading branch information
nkubala committed Oct 11, 2018
1 parent d273fda commit 306348d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/skaffold/bazel/bazel.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func GetDependencies(ctx context.Context, workspace string, a *latest.BazelArtif
deps = append(deps, "WORKSPACE")
}

logrus.Debugf("Found dependencies for bazel artifact: %s", deps)
logrus.Debugf("Found dependencies for bazel artifact: %v", deps)

return deps, nil
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/skaffold/docker/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func expandPaths(workspace string, copied [][]string) ([]string, error) {
for dep := range expandedPaths {
deps = append(deps, dep)
}
logrus.Debugf("Found dependencies for dockerfile: %s", deps)
logrus.Debugf("Found dependencies for dockerfile: %v", deps)

return deps, nil
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/skaffold/jib/jib_gradle.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func GetDependenciesGradle(ctx context.Context, workspace string, a *latest.JibG
if err != nil {
return nil, errors.Wrapf(err, "getting jibGradle dependencies")
}
logrus.Debugf("Found dependencies for jibGradle artifact: %s", deps)
logrus.Debugf("Found dependencies for jibGradle artifact: %v", deps)
return deps, nil
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/skaffold/jib/jib_maven.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func GetDependenciesMaven(ctx context.Context, workspace string, a *latest.JibMa
if err != nil {
return nil, errors.Wrapf(err, "getting jibMaven dependencies")
}
logrus.Debugf("Found dependencies for jibMaven artifact: %s", deps)
logrus.Debugf("Found dependencies for jibMaven artifact: %v", deps)
return deps, nil
}

Expand Down

0 comments on commit 306348d

Please sign in to comment.