Skip to content

Commit

Permalink
add a notice for linter upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
havan committed Sep 18, 2024
1 parent 41c81cc commit 1651bb7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@ set -euo pipefail

# Function to check if a command exists
golangci_lint_installed() {
golangci-lint --version >/dev/null 2>&1
golangci-lint --version >/dev/null 2>&1
}

# Function to install golangci-lint on Ubuntu
# When the golangci-lint version is updated here, also update it in .github/workflows/ci.yml
install_golangci_lint() {
echo "Installing golangci-lint..."
go install -v github.com/golangci/golangci-lint/cmd/[email protected]
}

# Check if golangci-lint is installed
if golangci_lint_installed ; then
if golangci_lint_installed; then
echo "golangci-lint is already installed."
else
echo "golangci-lint is not installed."
Expand Down

0 comments on commit 1651bb7

Please sign in to comment.