Skip to content

Commit 20d5f17

Browse files
authored
provide support for dependencies_next environments (#170)
1 parent b36ed42 commit 20d5f17

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/scripts/determine-lockfile.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ fi
99
if [ -n "$PARAM_OVERRIDE_LOCKFILE" ] && [ -f "$PARAM_OVERRIDE_LOCKFILE" ]; then
1010
echo "Using $PARAM_OVERRIDE_LOCKFILE as lock file"
1111
cp "$PARAM_OVERRIDE_LOCKFILE" $TARGET_DIR/ruby-project-lockfile
12+
elif [ -n "$DEPENDENCIES_NEXT" ] && [ -f "Gemfile_next.lock" ]; then
13+
echo "Using Gemfile_next.lock as lock file"
14+
cp Gemfile_next.lock $TARGET_DIR/ruby-project-lockfile
1215
elif [[ "$PARAM_GEMFILE" == *.rb ]]; then
1316
GEMS_LOCKED="${PARAM_GEMFILE%.rb}.locked"
1417

@@ -21,6 +24,6 @@ elif [[ "$PARAM_GEMFILE" == *.rb ]]; then
2124
elif [ -f "$PARAM_GEMFILE.lock" ]; then
2225
echo "Using $PARAM_GEMFILE.lock as lock file"
2326
cp "$PARAM_GEMFILE.lock" $TARGET_DIR/ruby-project-lockfile
24-
else
27+
else
2528
echo "Unable to determine lock file for $PARAM_GEMFILE."
2629
fi

0 commit comments

Comments
 (0)