chore: fix linting issues and generated files (#10317)

This commit is contained in:
Kayla Washburn
2023-10-17 14:41:35 -06:00
committed by GitHub
parent 492da15890
commit 619df23ad1
9 changed files with 22 additions and 20 deletions

View File

@ -21,7 +21,8 @@ SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}")
sqlc generate
first=true
for fi in queries/*.sql.go; do
files=$(find ./queries/ -type f -name "*.sql.go" | LC_ALL=C sort)
for fi in $files; do
# Find the last line from the imports section and add 1. We have to
# disable pipefail temporarily to avoid ERRPIPE errors when piping into
# `head -n1`.
@ -56,7 +57,7 @@ SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}")
go mod download
go run golang.org/x/tools/cmd/goimports@latest -w queries.sql.go
go run ../../scripts/dbgen/main.go
go run ../../scripts/dbgen
# This will error if a view is broken.
go test -run=TestViewSubset
)