Comments (16)
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.
Seems the new path should be
~/.composer/vendor/bin/phpcs --standard=PSR2 --extensions=php --ignore=".(blade.php)" app
from laravel-docker.
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.
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.
@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.
@HighCoData Is your issue fixed by the latest image?
from laravel-docker.
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.
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.
@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.
@fgilio Yes, it works now without specifying the complete path to phpcs, like before.
from laravel-docker.
Awesome! Thanks for the update
from laravel-docker.
Perfect. Thanks everyone for your help in this issue.
from laravel-docker.
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.
No image fixed this as well..
Thanks!
from laravel-docker.
yes it is, thanks
from laravel-docker.
@lorisleiva seems like the issue is back again with the following image:
lorisleiva/laravel-docker:7.4
from laravel-docker.
Related Issues (20)
- phpcs: command not found HOT 8
- bash: make: command not found HOT 2
- Error running composer install HOT 2
- phpcs: command not found HOT 1
- [Vote] Chromium for dusk tests HOT 1
- Missing extensions? HOT 1
- wkhtmltopdf issue for 7.4 HOT 6
- Latest version HOT 1
- Set php.ini parameters HOT 2
- Would it be possible to update to the latest PHPCS?
- Update to latest PHP8.1 HOT 3
- Error less: unrecognized option: X - PHP 7.4 HOT 2
- Disabling Xdebug HOT 1
- Rebuilding the images with latest PHP versions HOT 1
- build fails with node version issue HOT 1
- Imap Extension HOT 2
- Support for ARM64
- Missing git after commit "Install php extension with `docker-php-extension-installer` + get rid of already installed extension" HOT 7
- bash: git: command not found HOT 2
- phpunit: command not found HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-docker.