Closed navarr closed 9 months ago
For my module, I've got it setup so that the tools it'll use are installed in the root directory, and the module is in a src directory.
src
I'm trying to run the phpstan action:
In src is a composer.json declaring "swiftotter/correct-module-name" In . is a composer.json declaring "swiftotter/correct-module-name-toolset"
phpstan: name: PHPStan runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: extdn/github-actions-m2/magento-phpstan@master with: composer_name: swiftotter/correct-module-name module_source: src/ phpstan_level: 9
The output I'm receiving (with debug logging enabled) is:
2023-02-20T18:54:30.8042647Z ##[group]Run extdn/github-actions-m2/magento-phpstan@master 2023-02-20T18:54:30.8042919Z with: 2023-02-20T18:54:30.8043178Z composer_name: swiftotter/correct-module-name 2023-02-20T18:54:30.8043446Z module_source: src/ 2023-02-20T18:54:30.8043657Z phpstan_level: 9 2023-02-20T18:54:30.8043865Z composer_version: 2 2023-02-20T18:54:30.8044060Z ##[endgroup] 2023-02-20T18:54:30.8284118Z ##[command]/usr/bin/docker run --name extdnmagentophpstanactionlatest_3fe127 --label 49859c --workdir /github/workspace --rm -e "INPUT_COMPOSER_NAME" -e "INPUT_MODULE_SOURCE" -e "INPUT_PHPSTAN_LEVEL" -e "INPUT_COMPOSER_VERSION" -e "INPUT_MAGENTO_PRE_INSTALL_SCRIPT" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_DEBUG" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/correct-module-name/correct-module-name":"/github/workspace" extdn/magento-phpstan-action:latest 2023-02-20T18:54:31.1374413Z Setup extension source folder within Magento root 2023-02-20T18:54:31.1459800Z Configure extension source in composer 2023-02-20T18:54:32.2316344Z Pre Install Script: 2023-02-20T18:54:32.2317025Z Run installation 2023-02-20T18:54:33.3598761Z Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/ 2023-02-20T18:54:33.3600094Z Info from https://repo.packagist.org: [37;44m#StandWith[30;43mUkraine[0m 2023-02-20T18:54:41.3493418Z 2023-02-20T18:54:41.3547607Z 2023-02-20T18:54:41.3548037Z [InvalidArgumentException] 2023-02-20T18:54:41.3548713Z Could not find package swiftotter/correct-module-name. 2023-02-20T18:54:41.3549026Z 2023-02-20T18:54:41.3549284Z Did you mean this? 2023-02-20T18:54:41.3549663Z swiftotter/correct-module-name-toolset 2023-02-20T18:54:41.3549995Z 2023-02-20T18:54:41.3550137Z 2023-02-20T18:54:41.3551947Z require [--dev] [--prefer-source] [--prefer-dist] [--fixed] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--skip-magento-root-plugin] [--use-default-magento-values] [--interactive-magento-conflicts] [--base-magento-edition BASE-MAGENTO-EDITION] [--base-magento-version BASE-MAGENTO-VERSION] [--] [<packages>]... 2023-02-20T18:54:41.3552963Z 2023-02-20T18:54:41.5389034Z ##[debug]Docker Action run completed with exit code 1 2023-02-20T18:54:41.5395696Z ##[debug]Finishing: Run extdn/github-actions-m2/magento-phpstan@master
@navarr, could you check if my PR works for you?
@navarr, could you please check if my PR works for you? :)
For my module, I've got it setup so that the tools it'll use are installed in the root directory, and the module is in a
src
directory.I'm trying to run the phpstan action:
In src is a composer.json declaring "swiftotter/correct-module-name" In . is a composer.json declaring "swiftotter/correct-module-name-toolset"
The output I'm receiving (with debug logging enabled) is: