all.bash: run run_build_static first
run_build_static is now the first step of all.bash, to make it faster to
remove static/ changes when running in -dev mode.
Change-Id: I38f2f0f5bc9206d2c5f33f3907f7f79c66b031c9
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/346409
Trust: Julie Qiu <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
diff --git a/all.bash b/all.bash
index b1b0f48..7506d46 100755
--- a/all.bash
+++ b/all.bash
@@ -218,11 +218,11 @@
}
standard_linters() {
+ run_build_static
check_headers
check_bad_migrations
go_linters
check_script_hashes
- run_build_static
}
@@ -284,14 +284,14 @@
info "Running checks on:"
info " " $files
- check_headers $(filter "$files" '*.go' '*.sql' '*.sh')
- if [[ $(filter "$files" 'migrations/*') != '' ]]; then
- check_bad_migrations
- fi
if [[ $(filter "$files" $script_hash_glob) != '' ]]; then
check_script_hashes
run_build_static
fi
+ check_headers $(filter "$files" '*.go' '*.sql' '*.sh')
+ if [[ $(filter "$files" 'migrations/*') != '' ]]; then
+ check_bad_migrations
+ fi
if [[ $(filter "$files" '*.go') != '' ]]; then
go_linters
fi