Skip to content
Discussion options

You must be logged in to vote

You are spot on in your understanding.

One detail, all replace types happen first, all merges are merged into that after.

Edit: existing is before both of those, and the others update into it according to the strategy chosen

Unfortunately the order of the merges and replacements is not easily controllable, the way it works is by defining a custom type for the module option, which the module evaluator uses to merge options when it encounters the same one in multiple places.

The general rule is that the module that imports the other module will win (go last)

So, if you make several other modules, but then in your main module you import all of those, the ones in the main module will go last.

U…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@DerRockWolf
Comment options

@BirdeeHub
Comment options

@BirdeeHub
Comment options

Answer selected by DerRockWolf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants