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

Error on composer 2 syntax error: unexpected newline #80

Closed
AlessandroMinoccheri opened this issue May 24, 2022 · 3 comments
Closed

Error on composer 2 syntax error: unexpected newline #80

AlessandroMinoccheri opened this issue May 24, 2022 · 3 comments

Comments

@AlessandroMinoccheri
Copy link

Hi all,
I have a problem with our GitHub actions when we try to use composer 2 instead of 1.
I tried to specify 2.x, 2.2.12 but we receive always:

/usr/local/bin/composer: line 2: 

If I use composer 2 we have a PHP version problem because we are supporting PHP 7.1

This is a link to see the error:
https://github.com/phparkitect/arkitect/runs/6582531104?check_suite_focus=true#step:17:101

I have seen this issue very similar but I would like to know if it's possible to fix it or if we need to use composer 1:
#79

Thanks.

@gsdevme
Copy link
Contributor

gsdevme commented Jun 20, 2022

The PR does resolve the issue but no v7 tag has been created. If you swap to using the master branch directly it should work.

So use php-actions/composer@master vs php-actions/composer@v6 Could do with v7 being tagged though to ease this.

Something like

        uses: php-actions/composer@master
        with:
          php_version: ${{ matrix.php }}
          version: 2.2.x

@AlessandroMinoccheri
Copy link
Author

Thanks @gsdevme we can close the issue with this answer!

@g105b
Copy link
Member

g105b commented Jun 21, 2022

Thank you for bringing this to my attention. I'll release a v7 tag soon when a couple of other minor fixes are tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants