mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 00:04:42 +00:00
Read module info once at discovery and keep it in DiscoveredModule
DiscoveredModule is now a final class holding the module, the ModuleInfo read when the module was found (pack jar or builtIn) and its origin. Graph install, load errors, the pack summary and optional-package filtering use only that stored value.
This commit is contained in:
1 parent
f5cf4b3ab6
commit
6263075ecd
9 files changed
+163
-22
No files matched your search
@@ -38,7 +38,7 @@ public record LoadedModules(FeatureCatalog catalog, ResolvedGraph placement, Res
|
||||
stages.install(discovered);
|
||||
discovered.module().register(registry);
|
||||
} catch (LinkageError error) {
|
||||
throw new IllegalArgumentException("Module " + discovered.module().info().id() + " from "
|
||||
throw new IllegalArgumentException("Module " + discovered.info().id() + " from "
|
||||
+ discovered.origin() + " failed to link or initialize a class while installing: " + error
|
||||
+ "; a missing method or field means the jar was built against a different Iris API", error);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user