Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0ccf010

Browse files
authored
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.
1 parent d7f6321 commit 0ccf010

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

coderd/database/generate.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ set -euo pipefail
1111
cd "$(dirname "$0")"
1212

1313
# The logic below depends on the exact version being correct :(
14-
[[ $(sqlc version) != "v1.13.0" ]] && go install github.com/kyleconroy/sqlc/cmd/[email protected]
15-
sqlc generate
14+
go run github.com/kyleconroy/sqlc/cmd/[email protected] generate
1615

1716
first=true
1817
for fi in queries/*.sql.go; do

0 commit comments

Comments
 (0)