Skip to content

Allow dependency resolution when base's and derivative's features conflict#199

Merged
giacomofiorin merged 2 commits intomasterfrom
fix-ori-deps-conflict
Dec 14, 2018
Merged

Allow dependency resolution when base's and derivative's features conflict#199
giacomofiorin merged 2 commits intomasterfrom
fix-ori-deps-conflict

Conversation

@giacomofiorin
Copy link
Member

@giacomofiorin giacomofiorin commented Dec 14, 2018

This is done by overriding conflicting features in a base CVC's constructor in the derivative CVC's constructor, but calling init_cvc_features() only after the constructor chain is invoked.

Fixes the problem observed by @joeyelk and discussed in the comment of issue #184.

Allows the dependency resolution to be performed after object construction,
thus allowing features to be set by derivative classes before it.
@giacomofiorin giacomofiorin changed the title Allow dependency resolution when base' and derivative's Allow dependency resolution when base' and derivative's conflict Dec 14, 2018
@giacomofiorin giacomofiorin requested a review from jhenin December 14, 2018 16:07
@giacomofiorin
Copy link
Member Author

I accidentally submitted the PR while editing the description, but it's updated now.

Copy link
Member

@jhenin jhenin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@giacomofiorin giacomofiorin changed the title Allow dependency resolution when base' and derivative's conflict Allow dependency resolution when base's and derivative's features conflict Dec 14, 2018
@giacomofiorin giacomofiorin merged commit eea37b8 into master Dec 14, 2018
@giacomofiorin giacomofiorin deleted the fix-ori-deps-conflict branch December 14, 2018 20:49
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.

2 participants