From 50525ee6f3ef31ad09cbad90b2e63d7421c1552a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sun, 29 Dec 2024 02:47:18 +0100 Subject: [PATCH] helpers: Pass HOME to goenv init --- helpers/helpers.v1.d/go | 2 +- helpers/helpers.v2.1.d/go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/helpers.v1.d/go b/helpers/helpers.v1.d/go index 62c5058c4f..b5ad58e32b 100644 --- a/helpers/helpers.v1.d/go +++ b/helpers/helpers.v1.d/go @@ -192,7 +192,7 @@ eval \"\$(goenv init -)\" #goenv" > /etc/profile.d/goenv.sh # Load the environment - eval "$(goenv init -)" + HOME=$install_dir eval "$(goenv init -)" } # Remove the version of Go used by the app. diff --git a/helpers/helpers.v2.1.d/go b/helpers/helpers.v2.1.d/go index 47651d8678..38fa4f09d8 100644 --- a/helpers/helpers.v2.1.d/go +++ b/helpers/helpers.v2.1.d/go @@ -134,7 +134,7 @@ eval \"\$(goenv init -)\" #goenv" > /etc/profile.d/goenv.sh # Load the environment - eval "$(goenv init -)" + HOME=$install_dir eval "$(goenv init -)" _ynh_load_go_in_path_and_other_tweaks }