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

Pint Support not working (even with older version) #647

Closed
2 tasks done
Akecel opened this issue Sep 21, 2022 · 3 comments
Closed
2 tasks done

Pint Support not working (even with older version) #647

Akecel opened this issue Sep 21, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Akecel
Copy link

Akecel commented Sep 21, 2022

Describe the bug
I had already posted a comment in another issue already closed for this problem (#613). And I saw that you had made PRs on the side of the laravel/pint repository to correct a problem making that the .phar was not available in the lasts releases (thank you very much for the reactivity by the way).

Having discussed with the person in charge of the Pint releases, I know that no new release is planned for the moment and that therefore, I could not simply wait for a new one. So I decided to use the last release with a .phar (1.1.0), unfortunately it is still impossible to setup Pint in my workflow even though the .phar seems to be present in this release

     - name: Setup PHP
        uses: shivammathur/setup-php@v1
        with:
          php-version: '8.0'
          tools: pint:1.1.0
      - name: Run Laravel Pint without Fix
        run: pint --test
| ==> Setup Tools
| /usr/bin/php: error while loading shared libraries: libsodium.so.23: cannot open shared object file: No such file or directory
| ✓ composer Added composer 2.4.2
| /usr/bin/chmod: cannot access '/usr/local/bin/1.1.0/pint.phar': No such file or directory
| ✗ 1.1.0/pint.phar Could not setup 1.1.0/pint.phar

Version

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

Runners

  • GitHub Hosted

Operating systems
Ubuntu Latest

PHP versions
I tested with PHP 8.0 and PHP 8.1

To Reproduce

jobs:
  lint:
    name: Lint
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Setup PHP
        uses: shivammathur/setup-php@v1
        with:
          php-version: '8.0'
          tools: pint:1.1.0
      - name: Run Laravel Pint without Fix
        run: pint --test

Expected behavior

Error during setup :

| ==> Setup Tools
| /usr/bin/php: error while loading shared libraries: libsodium.so.23: cannot open shared object file: No such file or directory
| ✓ composer Added composer 2.4.2
| /usr/bin/chmod: cannot access '/usr/local/bin/1.1.0/pint.phar': No such file or directory
| ✗ 1.1.0/pint.phar Could not setup 1.1.0/pint.phar

Additional context

@Akecel Akecel added the bug Something isn't working label Sep 21, 2022
@shivammathur
Copy link
Owner

Version support fixed in a49dfe8
Test workflow: https://github.com/shivammathur/test-setup-php/actions/runs/3127180418/workflow

It will be in v2 in the next release

@shivammathur shivammathur added the awaiting-release Added/Fixed and tested, awaiting release label Sep 26, 2022
@Akecel
Copy link
Author

Akecel commented Sep 26, 2022

Thanks a lot !

@shivammathur
Copy link
Owner

Released 2.22.0 with the fix.

@shivammathur shivammathur removed the awaiting-release Added/Fixed and tested, awaiting release label Oct 28, 2022
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