-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updateToGo1.18 Signed-off-by: Sherin Varughese <shvarugh@redhat.com> * update packages Signed-off-by: Sherin Varughese <shvarugh@redhat.com> * update replace Signed-off-by: Sherin Varughese <shvarugh@redhat.com> * update make lint Signed-off-by: Sherin Varughese <shvarugh@redhat.com>
- Loading branch information
Showing
7 changed files
with
333 additions
and
802 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
service: | ||
# When updating this, also update the version stored in docker/build-tools/Dockerfile in the multicloudlab/tools repo. | ||
golangci-lint-version: 1.47.1 # use the fixed version to not introduce new linters unexpectedly | ||
run: | ||
# timeout for analysis, e.g. 30s, 5m, default is 1m | ||
deadline: 20m | ||
timeout: 20m | ||
go: 1.17 | ||
# which dirs to skip: they won't be analyzed; | ||
# can use regexp here: generated.*, regexp is applied on full path; | ||
# default value is empty list, but next dirs are always skipped independently | ||
# from this option's value: | ||
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$ | ||
skip-dirs: | ||
- test-data | ||
- vbh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
GOLANGCI_LINT_VERSION="v1.47.1" | ||
GOLANGCI_LINT_CACHE=/tmp/golangci-cache | ||
GOPATH=$(go env GOPATH) | ||
export GOFLAGS="" | ||
DOWNLOAD_URL="https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh" | ||
curl -sSfL "${DOWNLOAD_URL}" | sh -s -- -b "${GOPATH}/bin" v1.47.1 | ||
$(GOLANGCI_LINT_CACHE=${GOLANGCI_LINT_CACHE} CGO_ENABLED=0 GOGC=25 golangci-lint run) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.