Skip to content
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

bin/compile is broken on Windows #10693

Closed
mvorisek opened this issue Apr 2, 2022 · 3 comments
Closed

bin/compile is broken on Windows #10693

mvorisek opened this issue Apr 2, 2022 · 3 comments

Comments

@mvorisek
Copy link
Contributor

mvorisek commented Apr 2, 2022

with latest main I see:

Failed to compile phar: [RuntimeException] These files were unexpectedly added to the phar, make sure they are excluded or listed in $extraFiles:
array (
  0 => 'C:\\...\\forks\\composer\\src\\Composer/../../vendor\\phpstan\\phpstan-deprecation-rules\\rules.neon',
  1 => 'C:\\...\\forks\\composer\\src\\Composer/../../vendor\\phpstan\\phpstan-phpunit\\extension.neon',
  2 => 'C:\\...\\forks\\composer\\src\\Composer/../../vendor\\phpstan\\phpstan-phpunit\\rules.neon',
  3 => 'C:\\...\\forks\\composer\\src\\Composer/../../vendor\\phpstan\\phpstan-phpunit\\stubs\\InvocationMocker.stub',
  4 => 'C:\\...\\forks\\composer\\src\\Composer/../../vendor\\phpstan\\phpstan-phpunit\\stubs\\MockBuilder.stub',
  5 => 'C:\\...\\forks\\composer\\src\\Composer/../../vendor\\phpstan\\phpstan-phpunit\\stubs\\MockObject.stub',
  6 => 'C:\\...\\forks\\composer\\src\\Composer/../../vendor\\phpstan\\phpstan-phpunit\\stubs\\Stub.stub',
  7 => 'C:\\...\\forks\\composer\\src\\Composer/../../vendor\\phpstan\\phpstan-phpunit\\stubs\\TestCase.stub',
  8 => 'C:\\...\\forks\\composer\\src\\Composer/../../vendor\\phpstan\\phpstan-strict-rules\\rules.neon',
  9 => 'C:\\...\\forks\\composer\\src\\Composer/../../vendor\\phpstan\\phpstan-symfony\\extension.neon',
...

when I run compile from bin dir

@Seldaek
Copy link
Member

Seldaek commented Apr 2, 2022

Can you try again with latest see if d7f0733 highlights an issue?

@mvorisek
Copy link
Contributor Author

mvorisek commented Apr 2, 2022

I run the compile /wo any shell commands as my php env. does not support them for security reasons.

see mvorisek@73dc9d8

run with:

cd bin && php -d phar.readonly=0 compile.php

and uncomment the problematic line mvorisek@73dc9d8#diff-df7082676f4891241241b23e47108e77b204ff234200bdc4203477d672e1554cR146

the phpstan files should probably be ignored somewhere in mvorisek@73dc9d8#diff-df7082676f4891241241b23e47108e77b204ff234200bdc4203477d672e1554cR100

@Seldaek
Copy link
Member

Seldaek commented Apr 2, 2022

Sorry but no. If you want to tweak things it's on you to tweak things correctly. Our build script works fine, and the Compiler class expects a --no-dev install to be done before calling it.

Frankly your OP not mentioning that you run a completely separate build process is a waste of my time and really does not make me want to help any further. I don't know what you are up to, but I don't think it's my responsibility to help out anyone doing anything with this repo.

@Seldaek Seldaek closed this as completed Apr 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants