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.
Trust: Julie Qiu
Run-TryBot: Julie Qiu
TryBot-Result: kokoro
@@ -218,11 +218,11 @@ go_linters() {
}
standard_linters() {
+ run_build_static
check_headers
check_bad_migrations
go_linters
check_script_hashes
- run_build_static
}
@@ -284,14 +284,14 @@ main() {
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
