File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -419,7 +419,6 @@ lint: lint/shellcheck lint/go lint/ts lint/helm lint/site-icons
419
419
420
420
lint/site-icons :
421
421
./scripts/check_site_icons.sh
422
-
423
422
.PHONY : lint/site-icons
424
423
425
424
lint/ts :
@@ -517,6 +516,8 @@ coderd/database/dump.sql: coderd/database/gen/dump/main.go $(wildcard coderd/dat
517
516
go run ./coderd/database/gen/dump/main.go
518
517
519
518
# Generates Go code for querying the database.
519
+ # coderd/database/queries.sql.go
520
+ # coderd/database/models.go
520
521
coderd/database/querier.go : coderd/database/sqlc.yaml coderd/database/dump.sql $(wildcard coderd/database/queries/* .sql)
521
522
./coderd/database/generate.sh
522
523
Original file line number Diff line number Diff line change @@ -21,7 +21,9 @@ SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}")
21
21
sqlc generate
22
22
23
23
first=true
24
- for fi in queries/* .sql.go; do
24
+ files=$( find ./queries/ -type f -name " *.sql.go" | sort)
25
+ for fi in $files ; do
26
+ echo " ==> $fi "
25
27
# Find the last line from the imports section and add 1. We have to
26
28
# disable pipefail temporarily to avoid ERRPIPE errors when piping into
27
29
# `head -n1`.
@@ -56,7 +58,7 @@ SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}")
56
58
go mod download
57
59
go run golang.org/x/tools/cmd/goimports@latest -w queries.sql.go
58
60
59
- go run ../../scripts/dbgen/main.go
61
+ go run ../../scripts/dbgen
60
62
# This will error if a view is broken.
61
63
go test -run=TestViewSubset
62
64
)
You can’t perform that action at this time.
0 commit comments