Simplify the package list of (go vet)

That extra process is an extra 0.5s on macOS at least.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
Miloslav Trmač
2023-04-05 20:24:53 +02:00
parent bee51e5eed
commit 789257f767

View File

@@ -1,6 +1,6 @@
#!/bin/bash
errors=$(go vet -tags="${BUILDTAGS}" $(go list -e ./...))
errors=$(go vet -tags="${BUILDTAGS}" ./...)
if [ -z "$errors" ]; then
echo 'Congratulations! All Go source files have been vetted.'