From 8014c1d60a6bf56bc7510aaf52479fa241b57e42 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 19 Jul 2022 16:00:01 +0200 Subject: [PATCH] Fix go for bullseyes --- scripts/install | 2 ++ scripts/upgrade | 2 ++ 2 files changed, 4 insertions(+) diff --git a/scripts/install b/scripts/install index 3899e3a..da5d09e 100755 --- a/scripts/install +++ b/scripts/install @@ -132,6 +132,8 @@ tempdir="$(mktemp -d)" ynh_setup_source --dest_dir=$tempdir --source_id="webircgateway" pushd $tempdir ynh_use_go + export GOPATH="$tempdir/go" + export GOCACHE="$tempdir/.cache" ynh_go build popd diff --git a/scripts/upgrade b/scripts/upgrade index fee3b14..d231bd8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -140,6 +140,8 @@ tempdir="$(mktemp -d)" ynh_setup_source --dest_dir=$tempdir --source_id="webircgateway" pushd $tempdir ynh_use_go + export GOPATH="$tempdir/go" + export GOCACHE="$tempdir/.cache" ynh_go build popd