Skip to content

Commit

Permalink
Merge pull request #2248 from corneliusweig/upgrade-linter
Browse files Browse the repository at this point in the history
Upgrade golangci-lint to v1.17.1
  • Loading branch information
balopat authored Jun 13, 2019
2 parents 3f0dab6 + 97fc27e commit 0a03dd7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/skaffold/app/cmd/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func NewCmdBuild(out io.Writer) *cobra.Command {
WithFlags(func(f *pflag.FlagSet) {
f.StringSliceVarP(&opts.TargetImages, "build-image", "b", nil, "Choose which artifacts to build. Artifacts with image names that contain the expression will be built only. Default is to build sources for all artifacts")
f.BoolVarP(&quietFlag, "quiet", "q", false, "Suppress the build output and print image built on success. See --output to format output.")
f.VarP(buildFormatFlag, "output", "o", "Used in conjuction with --quiet flag. "+buildFormatFlag.Usage())
f.VarP(buildFormatFlag, "output", "o", "Used in conjunction with --quiet flag. "+buildFormatFlag.Usage())
}).
NoArgs(cancelWithCtrlC(context.Background(), doBuild))
}
Expand Down
2 changes: 1 addition & 1 deletion docs/content/en/docs/references/cli/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Flags:
-f, --filename string Filename or URL to the pipeline file (default "skaffold.yaml")
--insecure-registry strings Target registries for built images which are not secure
-n, --namespace string Run deployments in the specified namespace
-o, --output *flags.TemplateFlag Used in conjuction with --quiet flag. Format output with go-template. For full struct documentation, see https://godoc.org/github.com/GoogleContainerTools/skaffold/cmd/skaffold/app/flags#BuildOutput (default {{json .}})
-o, --output *flags.TemplateFlag Used in conjunction with --quiet flag. Format output with go-template. For full struct documentation, see https://godoc.org/github.com/GoogleContainerTools/skaffold/cmd/skaffold/app/flags#BuildOutput (default {{json .}})
-p, --profile strings Activate profiles by name
-q, --quiet Suppress the build output and print image built on success. See --output to format output.
--rpc-http-port int tcp port to expose event REST API over HTTP (default 50052)
Expand Down
2 changes: 1 addition & 1 deletion hack/linter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

if ! [ -x "$(command -v golangci-lint)" ]; then
echo "Installing GolangCI-Lint"
${DIR}/install_golint.sh -b $GOPATH/bin v1.16.0
${DIR}/install_golint.sh -b $GOPATH/bin v1.17.1
fi

golangci-lint run \
Expand Down
2 changes: 1 addition & 1 deletion pkg/skaffold/build/local/local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func TestLocalRun(t *testing.T) {
shouldErr: true,
},
{
description: "unkown artifact type",
description: "unknown artifact type",
artifacts: []*latest.Artifact{{}},
shouldErr: true,
},
Expand Down

0 comments on commit 0a03dd7

Please sign in to comment.