-
Notifications
You must be signed in to change notification settings - Fork 394
BLT Schema out of date process... #1914
Comments
This seems reasonable, but I would avoid executing composer install until after the user has answered the prompt affirmatively. |
What should a dev answer to that question though? I guess I was thinking the The problem I run into is things like comments I put into toggle-modules:
local:
enable:
- devel
- views_ui
- etc Edit: Is there a composer command to see if what you have installed does not match composer.lock file? That's really the scenario here. |
You could use |
But I mean, this isn't "the project" it's just the developer's branch. This happens, BLT or not, everytime there is an update to composer.json. Right? |
Any branch could have a different dependencies so it's a good idea to run The install command is completely idempotent, as long as you have a lock file so it's doesn't matter if it's run without making any changes. |
This is also my thinking. I wonder if we should consider introducing new git hooks that would execute |
Oh that's a cool idea...! |
I think that this is the best solution. Please feel free to open another issue if you would like to make a feature request for the referenced git hooks. |
I prefer to using custom composer scripts so we have
Then whenever you checkout a new branch you build it -- Before creating a new PR you can test it with The added benefit here is that you don't need the |
My system information:
So we have a dev that pulls down the latest
master
branch with the BLT update as part of it, and they run a$ blt setup
or some other command. BLT then prompts them that the schema is out of date, and asks if they want to run$ blt update
(which all the files inmaster
are already updated, it's just the vender version of BLT that is out of date). Instead of going to this prompt first, could an "out of date schema" detected runcomposer install
and then check again before the prompt?The text was updated successfully, but these errors were encountered: