mirror of https://github.com/hashicorp/packer
Revert golangci-lint to use new-from-rev pinned at 1.23.8 (#9072)
Turns out linting each file individually causes issues with the linter not being able to find the import types.pull/9073/head
parent
e8f8ebf132
commit
7ec55860e5
@ -1,6 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CHANGED_FILES=$(git diff --name-status `git merge-base origin/master HEAD`...HEAD | grep '^A.*\.go$'| awk '{print $2}')
|
||||
if [ ! -z "${CHANGED_FILES}" ]; then
|
||||
echo $CHANGED_FILES | xargs -n1 golangci-lint run
|
||||
fi
|
||||
Loading…
Reference in new issue