Skip to content

Commit

Permalink
fix(golangci-lint): Run from /tmp for the latest version.
Browse files Browse the repository at this point in the history
  • Loading branch information
jochumdev committed Dec 7, 2023
1 parent bbd7508 commit 138c037
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/lib/run_lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function run() {
exit 1
fi

$(go env GOPATH)/bin/golangci-lint run --out-format github-actions
/tmp/golangci-lint run --out-format github-actions

# Keep track of exit code of linter
if [[ $? -ne 0 ]]; then
Expand Down
6 changes: 3 additions & 3 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ function get_dirs() {

# Run GoLangCi Linters.
function run_linter() {
if [[ ! -e $(go env GOPATH)/bin/golangci-lint ]]; then
curl -sSfL "https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh" | sh -s -- -b $(go env GOPATH)/bin
if [[ ! -e /tmp/bin/golangci-lint ]]; then
curl -sSfL "https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh" | sh -s -- -b /tmp
fi

$(go env GOPATH)/bin/golangci-lint --version
/tmp/golangci-lint --version

print_msg "Running linters with $PROCS procs"
dirs=$1
Expand Down

0 comments on commit 138c037

Please sign in to comment.