Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BuildConfig: Detect invalid references on platform modules (#86)
Invalid module references currently cause an exception during artefact resolution: ``` Exception in thread "main" java.util.NoSuchElementException: key not found: invalid-module at scala.collection.immutable.Map$Map2.apply(Map.scala:129) at seed.config.BuildConfig$.$anonfun$collectJsModuleDeps$1(BuildConfig.scala:541) at scala.collection.immutable.List.flatMap(List.scala:335) at seed.config.BuildConfig$.collectJsModuleDeps(BuildConfig.scala:539) at seed.config.BuildConfig$.collectModuleDepsBase(BuildConfig.scala:587) at seed.config.BuildConfig$.$anonfun$collectModuleDeps$2(BuildConfig.scala:599) at scala.collection.immutable.List.flatMap(List.scala:335) at seed.config.BuildConfig$.collectModuleDeps(BuildConfig.scala:599) at seed.artefact.ArtefactResolution$.allRuntimeLibs(ArtefactResolution.scala:225) at seed.artefact.ArtefactResolution$.$anonfun$allRuntimeLibs$8(ArtefactResolution.scala:247) at scala.collection.immutable.List.flatMap(List.scala:335) at seed.artefact.ArtefactResolution$.allRuntimeLibs(ArtefactResolution.scala:244) at seed.artefact.ArtefactResolution$.runtimeResolution(ArtefactResolution.scala:379) at seed.cli.Generate$.ui(Generate.scala:38) at seed.Cli$.main(Cli.scala:394) at seed.Cli.main(Cli.scala) ``` The fix is to include all platform modules in the detection logic.
- Loading branch information