-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHAR 3.3.0 has \r char that breaks tool under Linux #281
Comments
Likely related to ComposerRequireChecker/build.xml Line 60 in a4a0380
|
Obviously I don't know what people use for setting up their CI, but I use GitHub Actions and https://github.com/shivammathur/setup-php for setting up PHP. I have fixed this temporarily with this setup-php config: dependency-analysis:
name: "Dependency Analysis"
runs-on: "ubuntu-latest"
strategy:
matrix:
php-version:
- "7.4"
- "8.0"
dependencies:
- "highest"
steps:
- name: "Checkout"
uses: "actions/checkout@v2"
- name: "Setup PHP, with composer and extensions"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
extensions: "${{ env.PHP_EXTENSIONS }}"
php-version: "${{ matrix.php-version }}"
tools: "composer-require-checker:3.1.0, composer-unused" # todo using 3.1.0 until this issue is fixed: https://github.com/maglnet/ComposerRequireChecker/issues/281 Notice the |
As per #256, my recommendation on how to install the tool: mkdir -p tools/composer-require-checker
cd tools/composer-require-checker
echo "{}" > composer.json
composer require maglnet/composer-require-checker
cd -
tools/composer-require-checker/vendor/bin/composer-require-checker Committing a |
I see your point, @Ocramius. Thanks :) |
As of today, even |
Guess we all love Shivam ❤️ |
When being built under systems having different PHP_EOL than \r, a phar will be built not working _usually_ under unix-alike system. Fixes maglnet#281
I understand the desire the remove phar building completely, bad it's damn convenient TBH. And, maybe I'm wring, we just need to use a I tested this locally and it just worked (though I'm on non-windows systems anyway 😬) |
Handled in #310 |
See shivammathur/setup-php#473 (comment)
The text was updated successfully, but these errors were encountered: