Conversation
Workspace setup refused to add the Wodby include to a tracked settings.php, so preparation failed for projects that commit their settings. It now works as in a build: it creates settings.php from default.settings.php when it's missing and appends the include when the file doesn't have one. In a workspace the include is skipped when Wodby's settings file doesn't exist, so the file keeps working elsewhere and the developer can commit it. Multisite sites.php gets the same include. Setup still never changes files outside the checkout, and it replaces the files directory with a link only when Git ignores it and doesn't track it. Standard initialization output is unchanged.
This was referenced Sep 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Setting up a Drupal workspace failed when the project's
settings.phpwas committed to Git: setup refused to add the Wodby include to a tracked file and asked the developer to add it by hand. Setup now does what a build does. It createssettings.phpfromdefault.settings.phpwhen it's missing, and appends the Wodby include when the file doesn't have one. In a workspace, the include only loads Wodby's settings when that file exists, so the developer can commit the change and the file keeps working outside Wodby.Changes
With
WODBY_WORKSPACE=1,init_drupalappends this block instead of a plaininclude:Multisite
sites/sites.phpgets the same block forwodby.sites.php. Files that already mention the Wodby file are left unchanged.Setup still checks every path before changing anything. It never changes files outside the checkout, and it replaces the site's
filesdirectory with a link to the files volume only when Git ignores that directory and doesn't track it.The path check now also works when the site directory doesn't exist yet.
Standard initialization output is byte-for-byte unchanged.
The README's workspace section describes the new behavior.
Validation
bash tests/workspace-checkout.shon macOS, and insidewodby/drupal-php:8.5with PHP 8.5 and Git 2.54. The test covers:default.settings.phpsites.phpA new revision release is needed after merge so the Drupal services can use it.