1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dendrite_ynh.git synced 2024-09-03 18:25:58 +02:00

improving go

This commit is contained in:
yalh76 2022-04-03 13:31:51 +02:00
parent 034e2144c1
commit 15783afe27
2 changed files with 4 additions and 4 deletions

View file

@ -126,8 +126,8 @@ 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"
export GOCACHE="$final_path/.cache"
export GOPATH="$final_path/build/go"
export GOCACHE="$final_path/build/.cache"
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

View file

@ -120,8 +120,8 @@ then
pushd "$final_path/build"
# Build the sources
ynh_use_go
export GOPATH="$final_path/go"
export GOCACHE="$final_path/.cache"
export GOPATH="$final_path/build/go"
export GOCACHE="$final_path/build/.cache"
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