diff --git a/.circleci/config.yml b/.circleci/config.yml index e5b3392d..c506a64b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -62,7 +62,7 @@ jobs: - v1-dependencies- - run: composer clearcache - run: sudo composer selfupdate - - run: composer install -n --prefer-dist + - run: composer install --no-scripts -n --prefer-dist - save_cache: key: v1-dependencies-{{ checksum "composer.json" }} paths: diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index 6df5ffe7..411d418e 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -35,7 +35,7 @@ jobs: run: cp .env.testing .env - name: Install dependencies - run: COMPOSER_MEMORY_LIMIT=-1 composer install + run: COMPOSER_MEMORY_LIMIT=-1 composer install --no-scripts - name: Generate application key run: php artisan key:generate diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml index 436f39a5..9677f5e3 100644 --- a/.github/workflows/security.yml +++ b/.github/workflows/security.yml @@ -24,7 +24,7 @@ jobs: php-version: '8.3' - name: 'Run Phpcpd' run: | - sudo composer install + sudo composer install --no-scripts sudo test -f phpcpd.phar || curl -L https://phar.phpunit.de/phpcpd.phar -o phpcpd.phar sudo php phpcpd.phar app/ @@ -37,7 +37,7 @@ jobs: php-version: '8.3' - name: 'Run php-insight' run: | - sudo composer install + sudo composer install --no-scripts sudo php artisan insights --min-quality=90 --min-complexity=90 --min-architecture=80 --min-style=90 --no-interaction security: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c8688fb4..5ac3714d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -30,7 +30,7 @@ jobs: run: cp .env.testing .env - name: Install dependencies - run: composer install + run: composer install --no-scripts - name: Generate application key run: php artisan key:generate diff --git a/Dockerfile b/Dockerfile index 394dc092..a8650745 100644 --- a/Dockerfile +++ b/Dockerfile @@ -102,7 +102,7 @@ USER ${USER} COPY --chown=${USER}:${USER} --from=vendor /usr/bin/composer /usr/bin/composer COPY --chown=${USER}:${USER} composer.json composer.lock ./ -RUN composer install \ +RUN composer install --no-scripts \ --no-dev \ --no-interaction \ --no-autoloader \ @@ -126,7 +126,7 @@ COPY --chown=${USER}:${USER} .docker/supervisord.*.conf /etc/supervisor/conf.d/ COPY --chown=${USER}:${USER} .docker/php.ini ${PHP_INI_DIR}/conf.d/99-octane.ini COPY --chown=${USER}:${USER} .docker/start-container /usr/local/bin/start-container -RUN composer install \ +RUN composer install --no-scripts \ --classmap-authoritative \ --no-interaction \ --no-ansi \ diff --git a/README.md b/README.md index 1f74db23..ca4bd76c 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ ## Setup -1. Ensure your environment is set up with PHP 8.3 and Composer installed. +1. Ensure your environment is set up with PHP 8.3 and composer install --no-scriptsed. 2. Download the project files from this GitHub repository. 3. Open a terminal in the project folder. If you are on Windows and have Git Bash installed, you can use it for the following steps. 4. Run the following command: @@ -63,7 +63,7 @@ NOTE 1: The script will ask you if you want to have your .env be overwritten by NOTE 2: This script will run seeders, please make sure you are aware of this and don't run this script if you don't want this to happen. ```bash -composer install +composer install --no-scripts php artisan key:generate php artisan migrate --seed ``` diff --git a/app/Services/InstallationScriptService.php b/app/Services/InstallationScriptService.php index 6ca4c53d..4b0ab4dd 100644 --- a/app/Services/InstallationScriptService.php +++ b/app/Services/InstallationScriptService.php @@ -42,7 +42,7 @@ public function generateScript() "git clone {$this->gitRepo} .", '', '# Install composer dependencies', - 'composer install --no-dev --optimize-autoloader', + 'composer install --no-scripts --no-dev --optimize-autoloader', '', '# Install npm dependencies and build assets', 'npm install', diff --git a/setup.sh b/setup.sh index ce7e4b53..2e946f66 100644 --- a/setup.sh +++ b/setup.sh @@ -46,8 +46,8 @@ echo "==================================" echo "" echo "" # Install laravel dependencies with composer -echo "🎬 DEV ---> COMPOSER INSTALL" -composer install +echo "🎬 DEV ---> composer install --no-scripts" +composer install --no-scripts echo "" echo "==================================" echo ""