Stanislav Zhuk

Results 326 comments of Stanislav Zhuk

The main goal is to promote `ddev_version_constraint` in `.ddev/config.yaml`. I want to add a hover tip (or something else) to inform users that they need to use a version constraint...

After so long I'm reluctant to do this, I don't want to put too much burden on myself 😅

The fix is available in: - https://github.com/ddev/ddev/pull/6627#issuecomment-2422346715

> Why I took the risk of changing that > Why I *needed* to take the risk of changing from raw (we should look together) Because only `Cmd` uses `$PATH`...

Inside the subshells, some strange things happen: ``` $ ddev ssh stas@d11-web:/var/www/html$ echo $PATH ~/bin:/var/www/html/vendor/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/www/html/bin stas@d11-web:/var/www/html$ bash stas@d11-web:/var/www/html$ echo $PATH ~/bin:/var/www/html/vendor/bin:~/bin:/var/www/html/vendor/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/www/html/bin:/var/www/html/bin stas@d11-web:/var/www/html$ bash stas@d11-web:/var/www/html$ echo $PATH ~/bin:/var/www/html/vendor/bin:~/bin:/var/www/html/vendor/bin:~/bin:/var/www/html/vendor/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/www/html/bin:/var/www/html/bin:/var/www/html/bin

> I update `$PATH` on Arch Linux in `/etc/profile.d`, and I will look if this can be applied to Debian. It didn't work, because `$PATH` is not updated in `docker-compose...

I used a `.ddev/web-build/Dockerfile` to understand it better: ```dockerfile RUN echo $PATH ``` I see this in `ddev debug rebuild`: ``` #9 [web 6/7] RUN echo /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin #9 0.299 ~/bin:/var/www/html/vendor/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/www/html/bin...

I also see the same behavior with `docker exec`. I don't know if this is a bug or expected behavior, I can only say that Docker has several default variables...

> I encountered similar issues after updating to latest version of DDEV. In my case I tested two different projects and in both projects just the `ddev composer install` command...

The fix is available in [DDEV HEAD](https://ddev.readthedocs.io/en/stable/developers/building-contributing/#testing-latest-commits-on-head).