-
Notifications
You must be signed in to change notification settings - Fork 18
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
'version' bootstrap issue #231
Comments
Simple fix: #232 |
Trying to review pending PRs, I have to say that I've never had issues with ( |
@klonos Steps to reproduce (replace
Subsequent Hope tht helps! |
Thanks @BWPanda ...I was able to reproduce. I almost never rebuild my local lando; I always build once, then destroy when done. Perhaps that's why I never noticed this issue before. Anyway, I know that you can do something like so: name: test
recipe: backdrop
config:
webroot: .
backdrush: 1.x-1.x And get to test the latest changes committed to the 1.x branch of this project, but how do I actually get to test PRs? |
To test this PR, add the following to your services:
appserver:
run_as_root:
- cd /var/www/.drush && wget https://patch-diff.githubusercontent.com/raw/backdrop-contrib/backdrop-drush-extension/pull/232.patch
- cd /var/www/.drush && patch -p1 < 232.patch After doing so and running |
@serundeputy @quicksketch Any chance this can get approved and merged, or does this quality as something the @backdrop-contrib/bug-squad can do...? |
Bug-squad can merge it if it has been RTBC for two weeks. We need someone else to review + confirm it works if not @serundeputy or @quicksketch |
@jenlampton Ah ok, thanks. @klonos How'd you go with this? Were you able to confirm the PR works to fix the bug? |
Sorry for the late response here, and thanks for pinging me on Zulip @BWPanda 🙏 ...I've tested the PR on my local, and I am no longer able to reproduce the problem ...running |
@BWPanda @klonos this is not working for me I've tried
Each (base) gff ~/code/drush-ops/232-drush-version
() └─ ∴ lando drush version
Command backdrop-drush-version needs a higher bootstrap level to run - you will need to invoke drush from a more functional Drupal environment to run this command. [error]
The drush command 'version' could not be executed. [error]
I've run out of time to continue testing and troubleshooting. That said you can merge this if you want, it doesn't make anything any worse or better as far as i can tell. |
@serundeputy Weird. Definitely works for me. Here's the Lando config I'm using: name: drush-version-test
recipe: backdrop
config:
webroot: .
services:
appserver:
run_as_root:
# - cd /var/www/.drush && wget https://patch-diff.githubusercontent.com/raw/backdrop-contrib/backdrop-drush-extension/pull/232.patch
# - cd /var/www/.drush && patch -p1 < 232.patch I start Lando with that config then run So the rebuild errors happen whenever there was an error before you rebuilt. I.e. when it tries to get the Drush version during a rebuild, it happens before the patch command, so it's still using the unpatched version initially. Once you're able to successfully run BTW, if it helps, I'm using Lando v3.0.23, Drush (proper) 8.3.5 and Backdrop Drush 1.x-1.x. |
I just updated the PR to change Even without reproducing the problem and testing the PR, I think it's clear that this change is necessary and worthwhile... As per the documentation for writing commands for the main Drush project, the default bootstrap phase is
So with @serundeputy's blessing, I'll ask @klonos to merge the PR please, then we can continue testing to make sure all works as expected when rebuilding Lando sites. |
Thanks for doing that extra research and providing all that info @BWPanda 👍 ...it all makes sense, and with @serundeputy's blessing, I've merged this into 1.x-1.x |
Good news: I've tested things again on some of my local sandboxes (all of which use Bad news: I've also tested with the steps provided in #231 (comment) (without any codebase present - backdrop or otherwise), and this time I got the usual errors 👎 @BWPanda wanna have another look? |
I imagine that's because that setup doesn't specify I'm not having any issues with a new Lando build, but I am sill having issues with my existing Sandbox. I suspect it's some sort of caching thing, which a |
I am getting this error message on lando v3.20.8 using the backdrop recipe every time I run lando rebuild.
|
The
version
command doesn't work properly:This also cases an issue in Lando: lando/lando#2695
The text was updated successfully, but these errors were encountered: