Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go/lint: add butuzov/mirror linter #269

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions go/lint-project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,22 @@ if [[ "$EXPERIMENTAL" == *"govulncheck"* ]]; then
fi
fi

# mirror
run_butuzov_mirror=false
if [[ "$org" == "moov-io" ]]; then
run_butuzov_mirror=true
fi
if [[ "$EXPERIMENTAL" == *"mirror"* ]]; then
run_butuzov_mirror=true
fi
if [[ "$run_butuzov_mirror" == "true" ]]; then
go install github.com/butuzov/mirror/cmd/mirror@latest

echo "butuzov mirror version: "$(mirror -V=full)
mirror ./...
echo "FINISHED butuzov mirror check"
fi

# sqlvet
if [[ "$EXPERIMENTAL" == *"sqlvet"* ]]; then
# Download only on linux or macOS
Expand Down