Skip to content

Commit 1d0dfec

Browse files
committed
fix more issue
Signed-off-by: yxxhero <aiopsclub@163.com>
1 parent 68325c4 commit 1d0dfec

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

scripts/verify-staticcheck.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ find_packages() {
1212
\) -name '*.go' -exec dirname '{}' ';' | sort -u
1313
}
1414

15+
command -v staticcheck || go install honnef.co/go/tools/cmd/staticcheck@latest
1516
errors="$(find_packages | xargs -I@ bash -c "staticcheck @")"
1617
if [[ -n "${errors}" ]]; then
1718
echo "${errors}"

0 commit comments

Comments
 (0)