mirror of
https://github.com/YunoHost-Apps/dendrite_ynh.git
synced 2024-09-03 18:25:58 +02:00
add GOPATH
This commit is contained in:
parent
1ea2323540
commit
9192168904
2 changed files with 2 additions and 0 deletions
|
@ -126,6 +126,7 @@ ynh_exec_warn_less ynh_install_go --go_version=$GO_VERSION
|
|||
pushd "$final_path/build"
|
||||
# Build the sources
|
||||
ynh_use_go
|
||||
export GOPATH=$final_path/go
|
||||
CGO_ENABLED=1 go build -trimpath -v -o "$final_path/bin/" ./cmd/dendrite-monolith-server > /dev/null 2>&1
|
||||
CGO_ENABLED=1 go build -trimpath -v -o "$final_path/bin/" ./cmd/goose > /dev/null 2>&1
|
||||
CGO_ENABLED=1 go build -trimpath -v -o "$final_path/bin/" ./cmd/create-account > /dev/null 2>&1
|
||||
|
|
|
@ -120,6 +120,7 @@ then
|
|||
pushd "$final_path/build"
|
||||
# Build the sources
|
||||
ynh_use_go
|
||||
export GOPATH=$final_path/go
|
||||
CGO_ENABLED=1 go build -trimpath -v -o "$final_path/bin/" ./cmd/dendrite-monolith-server > /dev/null 2>&1
|
||||
CGO_ENABLED=1 go build -trimpath -v -o "$final_path/bin/" ./cmd/goose > /dev/null 2>&1
|
||||
CGO_ENABLED=1 go build -trimpath -v -o "$final_path/bin/" ./cmd/create-account > /dev/null 2>&1
|
||||
|
|
Loading…
Add table
Reference in a new issue