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

Unable to use the new Symfony CLI #568

Closed
3 of 5 tasks
Kocal opened this issue Feb 24, 2022 · 4 comments
Closed
3 of 5 tasks

Unable to use the new Symfony CLI #568

Kocal opened this issue Feb 24, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@Kocal
Copy link

Kocal commented Feb 24, 2022

Describe the bug

When using tools: symfony-cli, we can't use the command symfony because of a symbolic link issue:

==> Setup Tools
✓ composer Added composer 2.2.6
ln: failed to create symbolic link '/usr/local/bin/symfony-cli' -> '': No such file or directory

Version

  • I have checked releases, and the bug exists in the latest patch version of v1 or v2.
  • v2
  • v1

Runners

  • GitHub Hosted
  • Self Hosted

Operating systems

Ubuntu 20.04.3

PHP versions

PHP 8.0.15

To Reproduce

This is the step we use:

        - name: Install PHP
          uses: shivammathur/setup-php@v2
          with:
              php-version: ${{ env.PHP_VERSION }}
              coverage: ${{ inputs.php_coverage }}
              extensions: amqp, apcu, ctype, fileinfo, gd, iconv, imagick, intl, json, xml, mysql, redis, sockets, xml, zip, ${{ inputs.php_additional_extensions }}
              tools: symfony-cli, ${{ inputs.php_additional_tools }}

However I'm sure you can reproduce the issue with:

        - name: Install PHP
          uses: shivammathur/setup-php@v2
          with:
              php-version: 8.0
              tools: symfony-cli

Expected behavior

The symfony binary should be usable.

Screenshots/Logs

Capture d’écran 2022-02-24 à 17 57 31

Additional context

Are you willing to submit a PR?

@Kocal
Copy link
Author

Kocal commented Feb 24, 2022

Also opened the issue on Symfony CLI repository: symfony-cli/symfony-cli#105

@shivammathur
Copy link
Owner

@Kocal
I could not reproduce the issue.
https://github.com/shivammathur/test-setup-php/runs/5322510677?check_suite_focus=true

Try restarting your workflow, and if it fails again try it with shivammathur/setup@verbose and provide me the logs.

@Kocal
Copy link
Author

Kocal commented Feb 24, 2022

Hum that's working now, maybe that was just a temporary issue, or it has been fixed upstream.

Thanks anyway!

@shivammathur
Copy link
Owner

Closing now, open reopen if this happens again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants