fix: Allow dumping db with pg_dump, utilize make cache (#4964)

This commit is contained in:
Mathias Fredriksson
2022-11-10 12:54:47 +02:00
committed by GitHub
parent 18a97c6f59
commit 4885ecc3ad
2 changed files with 36 additions and 9 deletions
+4 -2
View File
@@ -13,8 +13,10 @@ SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}")
(
cd "$SCRIPT_DIR"
# Dump the updated schema.
go run gen/dump/main.go
echo generate 1>&2
# Dump the updated schema (use make to utilize caching).
make -C ../.. --no-print-directory coderd/database/dump.sql
# The logic below depends on the exact version being correct :(
go run github.com/kyleconroy/sqlc/cmd/sqlc@v1.13.0 generate