-
-
Notifications
You must be signed in to change notification settings - Fork 27
Add a core-version command. #133
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
base: main
Are you sure you want to change the base?
Conversation
I think we should change our documentation from recommending a config.local.yaml file to a new |
This will need a test |
I have:
|
373ac97
to
3dd8477
Compare
If it's only for the The only difference in using |
Good shout! I got caught up in not being able to use |
@@ -76,11 +76,16 @@ Override any environment variable value from [.ddev/config.contrib.yaml](config. | |||
|
|||
### Changing the Drupal core version | |||
|
|||
In `.ddev/config.local.yaml` set the Drupal core version: | |||
Use the `ddev core-version` command to set the core version environment variable and update the code, for example: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the `ddev core-version` command to set the core version environment variable and update the code, for example: | |
Use the `ddev core-version` command to set the core version environment variable and update the dependencies, for example: |
web_environment: | ||
- DRUPAL_CORE=^11 | ||
```shell | ||
ddev core-version ^11 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think many people will omit the carat here. Can we handle that seamlessly? If not, lets error if its not a valid constraint.
Do you think it would simplify if we run |
The Issue
Streamline to process of switching branch by adding a command.
How This PR Solves The Issue
Adds the command.
Manual Testing Instructions
Automated Testing Overview
No tests added yet.
Release/Deployment Notes
Addition of a new
core-version
command to update the version configuration and code via a single command, e.g.: