mirror of
https://github.com/enso-org/enso.git
synced 2024-12-25 05:41:36 +03:00
Install GraalVM components before move (#1660)
Install the required GraalVM components before moving the directory.
This commit is contained in:
parent
9f60e22508
commit
0aa5b5647e
@ -697,11 +697,16 @@ class RuntimeVersionManager(
|
||||
}
|
||||
|
||||
try {
|
||||
val temporaryRuntime = loadGraalRuntime(runtimeTemporaryPath)
|
||||
if (temporaryRuntime.isFailure) {
|
||||
val temporaryRuntime =
|
||||
loadGraalRuntime(runtimeTemporaryPath).getOrElse {
|
||||
throw InstallationError(
|
||||
"Cannot load the installed runtime. The package may have been " +
|
||||
"corrupted. Reverting installation."
|
||||
)
|
||||
}
|
||||
installRequiredRuntimeComponents(temporaryRuntime, os).getOrElse {
|
||||
throw InstallationError(
|
||||
"Cannot load the installed runtime. The package may have been " +
|
||||
"corrupted. Reverting installation."
|
||||
"fatal: Cannot install the required runtime components."
|
||||
)
|
||||
}
|
||||
|
||||
@ -714,13 +719,6 @@ class RuntimeVersionManager(
|
||||
"fatal: Cannot load the installed runtime."
|
||||
)
|
||||
}
|
||||
installRequiredRuntimeComponents(runtime, os).getOrElse {
|
||||
FileSystem.removeDirectory(runtimePath)
|
||||
throw InstallationError(
|
||||
"fatal: Cannot install the required runtime components."
|
||||
)
|
||||
}
|
||||
|
||||
userInterface.logInfo(s"Installed $runtime.")
|
||||
|
||||
runtime
|
||||
|
Loading…
Reference in New Issue
Block a user