Skip to content

Commit

Permalink
Merge pull request #420 from robscott/fix-golint2
Browse files Browse the repository at this point in the history
Fixing verify-golint by using mod=readonly go flag
  • Loading branch information
k8s-ci-robot authored Oct 27, 2020
2 parents bec0a8e + b92b75d commit f5ace63
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hack/verify-golint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ set -o errexit
set -o nounset
set -o pipefail

KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
readonly KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..

cd "${KUBE_ROOT}"

GOLINT=${GOLINT:-"golint"}
readonly GOFLAGS="-mod=readonly"
readonly GOLINT=${GOLINT:-"golint"}

if ! command -v ${GOLINT} &> /dev/null; then
echo "golint not found, installing"
Expand Down

0 comments on commit f5ace63

Please sign in to comment.