Skip to content
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

Add documentation how to use the YAML merge key (example supplied) #248

Open
silverham opened this issue Aug 31, 2023 · 0 comments
Open

Comments

@silverham
Copy link

YAML merge works in lando.yml file.
We should document this on lando.dev.

Example of merge working in lando/yml file:

Merged version

name: my-drupal9-project
recipe: drupal9
x-php-version: &php-version '8.1'
x- nested-config-wrapper: &nested-config-wrapper
  config:
    php: lando-config/php.ini
config:
  php: *php-version
  << : *nested-config-wrapper

Equivalent

name: my-drupal9-project
recipe: drupal9
config:
  php: '8.1'
  config:
    php: lando-config/php.ini

More information
Merge Key Language-Independent Type for YAML™ Version 1.1
Lando Drupal Drupal Configuration
Sample online YML parser - codebeautify
Sample online YML parser - appspot

@silverham silverham added the documentation Improvements or additions to documentation label Aug 31, 2023
@pirog pirog transferred this issue from lando/lando Aug 31, 2023
@pirog pirog added Needs Triage and removed documentation Improvements or additions to documentation labels Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants