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/sqlc@v1.13.0
15-
sqlc generate
14+
go run github.com/kyleconroy/sqlc/cmd/sqlc@v1.13.0 generate
1615

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy