mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
fix: ensure correct version of sqlc is executed (#1287)
If `/usr/local/bin` is searched before `$GOPATH/bin` in your `$PATH` the wrong version of `sqlc` can be executed.
This commit is contained in:
@ -11,8 +11,7 @@ set -euo pipefail
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
# The logic below depends on the exact version being correct :(
|
||||
[[ $(sqlc version) != "v1.13.0" ]] && go install github.com/kyleconroy/sqlc/cmd/sqlc@v1.13.0
|
||||
sqlc generate
|
||||
go run github.com/kyleconroy/sqlc/cmd/sqlc@v1.13.0 generate
|
||||
|
||||
first=true
|
||||
for fi in queries/*.sql.go; do
|
||||
|
Reference in New Issue
Block a user