mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 11:41:19 +00:00
22 lines
541 B
Bash
Executable File
22 lines
541 B
Bash
Executable File
#!/bin/bash
|
|
|
|
scriptDir=$(dirname "${BASH_SOURCE[0]}")
|
|
scriptName=$(basename "${BASH_SOURCE[0]}")
|
|
version="v1.55.2"
|
|
|
|
if [[ "$1" == "--install-deps" ]]
|
|
then
|
|
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(go env GOPATH)/bin" "$version"
|
|
exit
|
|
fi
|
|
|
|
if ! which golangci-lint > /dev/null
|
|
then
|
|
echo "golangci-lint tool is not found, install it with:"
|
|
echo " make lint-deps"
|
|
echo "or follow https://golangci-lint.run/usage/install/"
|
|
exit 2
|
|
fi
|
|
|
|
golangci-lint run --config ./.golangci.yml
|