Giter VIP home page Giter VIP logo

Comments (16)

lorisleiva avatar lorisleiva commented on July 20, 2024 2

I've added back the ./vendor/bin path in the $PATH variable.

Please let me know if it works once the new images have been built. 🤞

from laravel-docker.

pixelplant avatar pixelplant commented on July 20, 2024 1

Seems the new path should be

~/.composer/vendor/bin/phpcs --standard=PSR2 --extensions=php --ignore=".(blade.php)" app

from laravel-docker.

fgilio avatar fgilio commented on July 20, 2024 1

Oh crap didn't think about this when making the change. @lorisleiva time you update your post? 😅

The fix should be as easy a adding export PATH=~/.composer/vendor/bin:$PATH to the equivalent of ~/.bash_profile.
I see that line 60 already does something similar.

I've seem people doing it like this:

# First set COMPOSER_HOME environment variable, will be picked up by Composer during install
ENV COMPOSER_HOME /composer
# Then add the global binary directory to PATH
ENV PATH /composer/vendor/bin:$PATH
# And finally install composer
....

I guess this is the same as in line 60, but maybe the dir is not ./vendor/bin. I like that the COMPOSER_HOME way makes it super explicit.

from laravel-docker.

fgilio avatar fgilio commented on July 20, 2024 1

Until this is properly fixed in the image, @pixelplant solution should work ~/.composer/vendor/bin/phpcs. And it should continue working when the image is fixed

from laravel-docker.

lorisleiva avatar lorisleiva commented on July 20, 2024 1

@fgilio Amazing, thanks for sharing this piece of code. I'll update the dockerfiles to make the composer directory explicit.

I'm going to reopen this until it works.

from laravel-docker.

lorisleiva avatar lorisleiva commented on July 20, 2024 1

@HighCoData Is your issue fixed by the latest image?

from laravel-docker.

lorisleiva avatar lorisleiva commented on July 20, 2024

Thanks for raising this! I've add to change the way PHPCS is installed and I didn't think about this consequence. Let me know if you can think of a way to set it up back to the way it was.

from laravel-docker.

AngeloAvv avatar AngeloAvv commented on July 20, 2024

Here I am with the very same error!

phpcs --standard=PSR2 --extensions=php --ignore=app/Console/*,app/Support/helpers.php app
/bin/bash: line 66: phpcs: command not found

So what's the best way to set it back properly?

from laravel-docker.

fgilio avatar fgilio commented on July 20, 2024

@AngeloAvv @pixelplant have you had a chance to test with the latest version? I don't have any project with the CI running the phpcs job

from laravel-docker.

pixelplant avatar pixelplant commented on July 20, 2024

@fgilio Yes, it works now without specifying the complete path to phpcs, like before.

from laravel-docker.

fgilio avatar fgilio commented on July 20, 2024

Awesome! Thanks for the update

from laravel-docker.

lorisleiva avatar lorisleiva commented on July 20, 2024

Perfect. Thanks everyone for your help in this issue.

from laravel-docker.

HighCoData avatar HighCoData commented on July 20, 2024

I'm still having issues after clearing all cache and rebuilding the composer package....
None of the applicaitons in vendor/bin are not accasible.

I'm using the latest image

from laravel-docker.

bseresia avatar bseresia commented on July 20, 2024

No image fixed this as well..
Thanks!

from laravel-docker.

HighCoData avatar HighCoData commented on July 20, 2024

yes it is, thanks

from laravel-docker.

AngeloAvv avatar AngeloAvv commented on July 20, 2024

@lorisleiva seems like the issue is back again with the following image:

lorisleiva/laravel-docker:7.4

from laravel-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.