Skip to content
Permalink
Browse files

Upgrade to golangci-lint v0.19.0 (#346)

..and fix one new issue
  • Loading branch information...
corneliusweig authored and k8s-ci-robot committed Sep 24, 2019
1 parent e88f854 commit 0aff0ff4712dea4fb544856f524cca7c44dcdc05
Showing with 3 additions and 3 deletions.
  1. +2 −2 cmd/krew/cmd/list.go
  2. +1 −1 hack/run-lint.sh
@@ -72,10 +72,10 @@ Remarks:

func printTable(out io.Writer, columns []string, rows [][]string) error {
w := tabwriter.NewWriter(out, 0, 0, 2, ' ', 0)
fmt.Fprintf(w, strings.Join(columns, "\t"))
fmt.Fprint(w, strings.Join(columns, "\t"))
fmt.Fprintln(w)
for _, values := range rows {
fmt.Fprintf(w, strings.Join(values, "\t"))
fmt.Fprint(w, strings.Join(values, "\t"))
fmt.Fprintln(w)
}
return w.Flush()
@@ -23,7 +23,7 @@ gopath="$(go env GOPATH)"
if ! [[ -x "$gopath/bin/golangci-lint" ]]; then
echo >&2 'Installing golangci-lint'
curl --silent --fail --location \
https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b "$gopath/bin" v1.18.0
https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b "$gopath/bin" v1.19.0
fi

# configured by .golangci.yml

0 comments on commit 0aff0ff

Please sign in to comment.
You can’t perform that action at this time.