diff --git a/helpers/helpers.v1.d/go b/helpers/helpers.v1.d/go index 62c5058c4f..4a0a4e2737 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 -)" + eval "$(HOME=$install_dir 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..b92430a09f 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 -)" + eval "$(HOME=$install_dir goenv init -)" _ynh_load_go_in_path_and_other_tweaks }