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

Fix GOCACHE

This commit is contained in:
yalh76 2022-04-02 22:59:26 +02:00
parent 9192168904
commit 034e2144c1
2 changed files with 4 additions and 2 deletions

View file

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