Skip to content

Commit

Permalink
Upgrade golangci-lint version to v1.31
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpollet authored Sep 17, 2020
1 parent a0f82a5 commit 0afa0f8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion .golangci.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"noctx", # Too strict
"exhaustive", # Too strict
"nlreturn", # Too strict
"exportloopref", # Too strict
]

[issues]
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ WORKDIR /go/src/github.com/traefik/mesh
RUN curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh

# Download golangci-lint binary to bin folder in $GOPATH
RUN curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.30.0
RUN curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.31.0

ENV GO111MODULE on
COPY go.mod go.sum ./
Expand Down
2 changes: 1 addition & 1 deletion pkg/dns/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ func addStubDomain(config, blockHeader, blockTrailer, domain, clusterDomain, tra

stubDomain := fmt.Sprintf(stubDomainFormat,
clusterDomain,
strings.Replace(clusterDomain, ".", "\\.", -1),
strings.ReplaceAll(clusterDomain, ".", "\\."),
traefikMeshNamespace,
blockHeader,
blockTrailer,
Expand Down
2 changes: 2 additions & 0 deletions pkg/topology/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,9 @@ func buildHTTPRouteGroupMatches(ttMatches []string, httpRouteGroupMatches []spec
found = match.Name == name

if found {
match := match
httpMatches = append(httpMatches, &match)

break
}
}
Expand Down

0 comments on commit 0afa0f8

Please sign in to comment.