mirror of
https://github.com/gomods/athens
synced 2026-02-03 11:00:32 +00:00
* add github actions workflow for tag releases * migrate drone build &test step to github actions * fix minio service * fix indentation * fix dependency syntax * remove needs keyword * fix service hostnames, add protectedredis * update protected redis docker image * fix too many args error * exclude vendor dir from gofmt * fix fmt errors * fix fmt errors * rm .drone.yml * rename workflow name * break test step * remove vendor step * use makefile rule * use buildx
11 lines
268 B
Bash
Executable File
11 lines
268 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# check_gofmt.sh
|
|
# Fail if a .go file hasn't been formatted with gofmt
|
|
set -euo pipefail
|
|
|
|
GO_FILES=$(find . -iname '*.go' -type f -not -path "./vendor/*") # All the .go files
|
|
for f in $GO_FILES; do
|
|
test -z "$(gofmt -s -w "$f" | tee /dev/stderr)"
|
|
done
|