composer icon indicating copy to clipboard operation
composer copied to clipboard

Imposible to install intl extension on windows-latest + PHP 7.4/8.0

Open LastDragon-ru opened this issue 3 years ago • 5 comments

Log (https://github.com/LastDragon-ru/tmp-phpunit-workflow/runs/1790193993?check_suite_focus=true)

Run php-actions/composer@v5
  with:
    command: update
    php_version: 7.4
    php_extensions: intl
    version: latest
    interaction: no
    dev: yes
    progress: no
    quiet: no
Building PHP 7.4 with extensions: intl ...
cat: 'D:atmp-phpunit-workflowtmp-phpunit-workflow/output.log': No such file or directory
Error: Process completed with exit code 1.

LastDragon-ru avatar Jan 29 '21 08:01 LastDragon-ru

I'll take a look into why this is occurring and get back to you later.

g105b avatar Jan 29 '21 08:01 g105b

I've isolated the issue to https://github.com/php-actions/php-build - this repository is used to create the Docker packages that run PHP within your actions, and it's failing due to the naming convention I've picked. It calls the packages by a name that contains the version of PHP, list of extensions, etc. but it doesn't mention the operating system. I hadn't expected people would be using Windows for PHP development so this never came up in testing.

I'll do some testing in the php-actions/example-composer repository to see how this can be improved.

g105b avatar Jan 29 '21 09:01 g105b

@g105b, thank you. I test my packages on windows just for the case. So this bug absolutely not critical :)

LastDragon-ru avatar Jan 29 '21 10:01 LastDragon-ru

All https://github.com/PhpGt repositories will be getting Windows compatibility soon, so I will have a bunch of repositories to test this when I get the fix soon.

g105b avatar Feb 10 '21 10:02 g105b

Is there any environment variable available within the container that indicates the operating system and version?

g105b avatar Apr 07 '21 12:04 g105b

Closing due to inactivity. Please open if this is still unanswered for you.

g105b avatar Nov 09 '22 15:11 g105b