mirror of
https://github.com/gomods/athens
synced 2026-02-12 06:18:08 +00:00
* Make it easier to run all the same commands that Travis does * Add target to install dev tools * Dirty a temp directory instead of the repo root * Explain our new make targets * Set a TMPDIR on travis * Fix comment
9 lines
255 B
Bash
Executable File
9 lines
255 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 | grep -v /vendor/) # All the .go files, excluding vendor/
|
|
test -z $(gofmt -s -l $GO_FILES | tee /dev/stderr)
|