mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-19 02:21:32 +08:00
Don't always install node in the virtualenv
if it's already installed system-wide at the correct version. Prevent node installation issues during CI builds where we install node with the setup-node action but it was ignored because it was not inside the virtualenv, e.g.: https://github.com/galaxyproject/galaxy/actions/runs/5530959878/jobs/10091018774
This commit is contained in:
@@ -199,7 +199,7 @@ fi
|
||||
|
||||
# Install node if not installed
|
||||
if [ -n "$VIRTUAL_ENV" ]; then
|
||||
if ! in_venv "$(command -v node)" || [ "$(node --version)" != "v${NODE_VERSION}" ]; then
|
||||
if ! command -v node >/dev/null || [ "$(node --version)" != "v${NODE_VERSION}" ]; then
|
||||
echo "Installing node into $VIRTUAL_ENV with nodeenv."
|
||||
if [ -d "${VIRTUAL_ENV}/lib/node_modules" ]; then
|
||||
echo "Removing old ${VIRTUAL_ENV}/lib/node_modules directory."
|
||||
|
||||
Reference in New Issue
Block a user