Fix regression in CLI error handling when project loading fails (#1439)

This commit is contained in:
Jen Basch
2026-02-25 01:28:05 -08:00
committed by GitHub
parent 28b09134d7
commit 2e4d73b957
2 changed files with 3 additions and 2 deletions

View File

@@ -111,9 +111,10 @@ abstract class CliCommand(protected val cliOptions: CliBaseOptions) {
remoteDep.packageUri.toPackageAssetUri(path).uri
}
protected val resolvedSourceModules: List<URI> =
protected val resolvedSourceModules: List<URI> by lazy {
if (project == null) cliOptions.normalizedSourceModules
else cliOptions.normalizedSourceModules.map(::resolveModuleUri)
}
protected fun loadProject(projectFile: Path): Project {
val securityManager =