Skip to content

Commit c643ba0

Browse files
committed
halp pls
1 parent e78c35e commit c643ba0

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,6 @@ lint: lint/shellcheck lint/go lint/ts lint/helm lint/site-icons
419419

420420
lint/site-icons:
421421
./scripts/check_site_icons.sh
422-
423422
.PHONY: lint/site-icons
424423

425424
lint/ts:
@@ -517,6 +516,8 @@ coderd/database/dump.sql: coderd/database/gen/dump/main.go $(wildcard coderd/dat
517516
go run ./coderd/database/gen/dump/main.go
518517

519518
# Generates Go code for querying the database.
519+
# coderd/database/queries.sql.go
520+
# coderd/database/models.go
520521
coderd/database/querier.go: coderd/database/sqlc.yaml coderd/database/dump.sql $(wildcard coderd/database/queries/*.sql)
521522
./coderd/database/generate.sh
522523

coderd/database/generate.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}")
2121
sqlc generate
2222

2323
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"
2527
# Find the last line from the imports section and add 1. We have to
2628
# disable pipefail temporarily to avoid ERRPIPE errors when piping into
2729
# `head -n1`.
@@ -56,7 +58,7 @@ SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}")
5658
go mod download
5759
go run golang.org/x/tools/cmd/goimports@latest -w queries.sql.go
5860

59-
go run ../../scripts/dbgen/main.go
61+
go run ../../scripts/dbgen
6062
# This will error if a view is broken.
6163
go test -run=TestViewSubset
6264
)

0 commit comments

Comments
 (0)