Skip to content

Commit d4714fc

Browse files
authored
fix: setting GEM_HOME and GEM_PATH to allow repo under linux home dir (#1267)
Solving issue of not finding Gemfile when the repo dir is under your home directory
1 parent b7ed29b commit d4714fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/setup

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ if [ -v GITHUB_ACTIONS ]; then
106106
echo "Running in a GitHub Action"
107107
CONTAINER_PATH=${ROOT}/.singularity/image.sif
108108
HOME_PATH=${GITHUB_WORKSPACE}
109-
HOME_OPT="--home ${ROOT}/.home"
109+
GEM_HOME=${ROOT}/.home/.gems && GEM_PATH=$GEM_HOME
110110
SINGULARITY_CACHE=--disable-cache
111111

112112
# needed to get singularity working on Ubuntu 24.04
@@ -137,7 +137,7 @@ elif [ "${CONTAINER_TYPE}" == "docker" -o "${CONTAINER_TYPE}" == "podman" ]; the
137137
elif [ "${CONTAINER_TYPE}" == "singularity" ]; then
138138
CONTAINER_PATH=${ROOT}/.singularity/image-$CONTAINER_TAG.sif
139139
HOME_PATH=${HOME}
140-
HOME_OPT="--bind ${ROOT}/.home:${HOME_PATH}"
140+
GEM_HOME=${ROOT}/.home/.gems && GEM_PATH=$GEM_HOME
141141
SINGULARITY_CACHE=
142142
if [ ! -f ${CONTAINER_PATH} ]; then
143143
echo "Fetching container..."

0 commit comments

Comments
 (0)