forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't eagerly merge configs. (pantsbuild#20459)
Merging the config values is incorrect for list- and dict-valued options, where we want to concatenate edits, not stomp them. For example, if for some list-valued option the default value is [0,1], config1 has -[0] and config2 has +[2,3] then the resulting value should be [1,2,3], but before this change it would have been [0,1,2,3]. Instead, we preserve each config file as a separate source, and do the appropriate stomping/merging at option value get time.
- Loading branch information
Showing
5 changed files
with
180 additions
and
136 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.