Overriding in module descriptors
See original GitHub issueFollowing an agreeable discussion about module descriptors and assemblies, we decided that we need to allow overrides in module.ceylon
. Merging these overrides would apply downwards in a module dependency tree (cycles are not a problem because they always have to be compiled together anyway).
For flatclasspath we would still require additional overrides (to resolve conflicts between non-shared but duplicated dependencies).
We’d need a compile-time version validation phase (to identify diamonds), which would benefit from being able to obtain dependency information without downloading the entire module. This could be a special API for herd, or a separate artifact obtainable separately from the module itself.
Issue Analytics
- State:
- Created 8 years ago
- Comments:46 (37 by maintainers)
Top Results From Across the Web
Modules (Guice 4.2 API) - Google
Returns a builder that creates a module that overlays override modules over the given modules. If a key is bound in both sets...
Read more >Module Details: override (v3) - InspIRCd Documentation
The "override" Module. Description. This module allows server operators to be given privileges that allow them to ignore various channel-level restrictions.
Read more >A Drupal module for overriding services | by Rik de Boer
One example of services are EventSubscribers. You can use this module to override as many services as you require.
Read more >Use Modules to override styles - Adobe Developer
Theme styles should override module styles. But you must use the override pattern consistently within Page Builder, or it won't work.
Read more >Module overrides - Eclipse Ceylon
For all these reasons, we created an experimental measure that lets you override the dependency information in a Maven or Ceylon module descriptor....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
dont import "this.module"
😉Well, TBH, I would be perfectly happy using:
actual
annotation instead of~
forimport
version overrides, andshared
annotation instead of~
forimport
export overrides, and+
for addingimport
s.But then I wouldn’t know what to do for removing
import
s, which @FroMage insists is a necessary capability.FTR, it would look like this:
The above is rather clean and readable, and more ceylonic (no cryptic symbols). But how would you indicate removal of a dependency?