-
Notifications
You must be signed in to change notification settings - Fork 1
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
Appserver Postgres Client mismatch #2
Comments
hey! |
@dpacassi @Daisuke-sama can you please provide steps to replicate. Using the following lando file:
The commands show the right version:
|
sure, my steps:
and I get |
strange @Daisuke-sama on this lando file:
I get the following:
And on yours:
What version of Lando are you on? Have you tried purging your system and starting over? https://docs.lando.dev/help/purging-containers.html |
I think the issue description captures this, but our team ran into this and the cause wasn't obvious so I'll add a comment. Here's a minimal repro, showing that with a simple configuration it's possible to see mismatched client versions: .lando.yml: name: lando-test
recipe: drupal7
config:
database: postgres:12 steps to reproduce:
(the last two commands are the same, specifying then omitting the host) In a Drupal recipe, If the appserver needs matching versions (eg to use Working on both postgres and non-postgres projects, I'd probably rather Lando didn't add such a build step by default, unless it applied only to Lando configurations where postgres was used, as I wouldn't want to have to wait for extra steps on a rebuild if the project at hand won't use those tools at all. NB: @Daisuke-sama #2 (comment) did not behave as expected because the test was done with |
When creating a Drupal project with Lando and the following yml file:
The DB version is 13 while the client bin versions (
psql
andpg_dump
on appserver) are still on version 10.If I define another Postgres version in the config, I'd expect that the recipe automatically uses the right version also for the client commands (
psql
,pg_dump
).I guess this is related to lando/lando#1680. I found a workaround also there.
I added following lines to get the client bins with the right version:
The text was updated successfully, but these errors were encountered: