mirror of
https://github.com/lightninglabs/loop
synced 2024-11-09 19:10:47 +00:00
21 lines
422 B
Bash
Executable File
21 lines
422 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Directory of the script file, independent of where it's called from.
|
|
DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
|
|
# Use the user's cache directories
|
|
GOCACHE=`go env GOCACHE`
|
|
GOMODCACHE=`go env GOMODCACHE`
|
|
|
|
echo "Generating sql models and queries in go..."
|
|
|
|
docker run \
|
|
--rm \
|
|
--user "$UID:$(id -g)" \
|
|
-e UID=$UID \
|
|
-v "$DIR/../:/build" \
|
|
-w /build \
|
|
sqlc/sqlc:1.25.0 generate
|
|
|