Skip to content

Conversation

@kayw-geek
Copy link
Collaborator

Fixes two configuration issues related to default release workers:

  • Fix parameter merge priority: Ensures user-configured services can properly override default services in the dependency injection container
  • Fix invalid disable default workers config: Corrects the implementation of disableDefaultWorkers() by always registering default workers and removing
    them via compiler pass instead of conditional registration

Changes

  • Modified service registration flow to register default workers unconditionally
  • Added RemoveDefaultWorkersCompilerPass to handle worker removal when disabled
  • Ensures proper parameter merge priority so user configurations take precedence over defaults

Fix #94 #95

kayw-geek and others added 2 commits November 20, 2025 09:24
In version 12.3.1, the config loading order was fixed to load default config
before user config (commit eef024e). However, the parameter merging logic
had the arguments in the wrong order, causing old (default) values to take
priority over new (user) values.

The ParametersMerger::merge() method gives priority to its first (left)
argument. This commit swaps the arguments from merge(oldValue, currentValue)
to merge(currentValue, oldValue), ensuring that user configurations properly
override default configurations.

Fixes the issue where defaultBranch('main') in user config was being
overridden by the default 'master' value, breaking custom ReleaseWorkers
that depend on the correct branch name.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@kayw-geek kayw-geek merged commit 805b2a4 into symplify:main Nov 20, 2025
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong configuration loaded for custom workers

1 participant