Skip to content

Commit

Permalink
🛠️ ignore platform reqs in devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
QWp6t committed May 3, 2024
1 parent c978c70 commit 6bcbc53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ fi
cd /roots/app

# Install Composer dependencies
composer -d /roots/app install --no-progress --optimize-autoloader --prefer-dist --no-interaction
composer -d /roots/app install --no-progress --optimize-autoloader --prefer-dist --no-interaction --ignore-platform-reqs

# Link the workspace folder
if cat "${WORKSPACE_FOLDER}/composer.json" | jq '.type' | grep -q wordpress-theme; then
Expand All @@ -88,7 +88,7 @@ else
cat /roots/app/composer.json | jq ".repositories += [{ type: \"path\", url: \"${WORKSPACE_FOLDER}\" }]" > /roots/app/composer.tmp \
&& rm /roots/app/composer.json \
&& mv /roots/app/composer.tmp /roots/app/composer.json \
&& composer require -d /roots/app $(cat "${WORKSPACE_FOLDER}/composer.json" | jq '.name' | tr -d '"') --no-interaction -W
&& composer require -d /roots/app $(cat "${WORKSPACE_FOLDER}/composer.json" | jq '.name' | tr -d '"') --no-interaction -W --ignore-platform-reqs
fi

composer remove -d /roots/app wpackagist-theme/twentytwentyfour
Expand Down

0 comments on commit 6bcbc53

Please sign in to comment.