mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-06 10:22:08 +01:00
20 lines
425 B
Bash
20 lines
425 B
Bash
|
#!/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 \
|
||
|
kjconroy/sqlc:1.18.0 generate
|