mirror of
https://github.com/gomods/athens
synced 2026-02-03 12:10:32 +00:00
Removing gofmt vendor ignores (#1321)
* Removing gofmt vendor ignores We don't have a vendor directory anymore 😄 🎉 * wrapping env var in quotes Thanks @chriscoffee for the suggestion!
This commit is contained in:
committed by
marpio
parent
16739a1213
commit
054edde824
@@ -4,5 +4,5 @@
|
||||
# Fail if a .go file hasn't been formatted with gofmt
|
||||
set -euo pipefail
|
||||
|
||||
GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/) # All the .go files, excluding vendor/
|
||||
test -z $(gofmt -s -d $GO_FILES | tee /dev/stderr)
|
||||
GO_FILES=$(find . -iname '*.go' -type f) # All the .go files
|
||||
test -z $(gofmt -s -d "$GO_FILES" | tee /dev/stderr)
|
||||
|
||||
Reference in New Issue
Block a user