I feel I'm having one of those "DUH! Of course!" moments right now.
I've been doing updates for years, and cursing every time this happened to me. I have to run a simple command: composer update drupal/core "drupal/core-*" --with-all-dependencies
We work locally with lando, and use composer within lando as well, so the command would change to: lando composer ...
So far so good, worked very well.
But sometimes, the dreadful message came:
Wait, what? Why?
And it finished with...
But why?! I used it, is it playing with me? Is this script bullying me?
Well, no. I realized today, that using Composer within Lando can be confusing for the script sometimes.
Somehow, the --with-all-dependencies
flag was ignored.
The fix is easy. We just need to make sure that the command gets separated, and everything after composer
is treated as an argument for Composer, and not Lando.
Just add a double dash. Like this:
This is a command line thing. Everything after the double dash is an argument for composer update
, and that's it. It worked. It worked so smoothly I felt like I had seen the stars in the meme.
Hope this is useful to you as well.
Pantheon Quicksilver script to send notifications to Discord
Following the one way or another series we’ll solve the problem of overriding the default order of a view with hand picked contents through Entity queues.
This is the first of the One way or another series. A set of blog posts where we explore different ways to implement similar features. Our topic today is: Sticky content on top of lists!