-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable UpdatingEditionProvider when running Enso CLI #10408
Conversation
EditionManager.makeEditionProvider( | ||
distributionManager, | ||
Some(languageHome), | ||
false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passing false
as we want to disable updating in the production.
@@ -347,7 +347,8 @@ abstract class BaseServerTest | |||
val editionProvider = | |||
EditionManager.makeEditionProvider( | |||
distributionManager, | |||
Some(languageHome) | |||
Some(languageHome), | |||
true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In tests, we can happily test the UpdatingEditionProvider
.
@@ -43,7 +43,8 @@ object DependencyPreinstaller { | |||
|
|||
val editionProvider = EditionManager.makeEditionProvider( | |||
distributionManager, | |||
Some(languageHome) | |||
Some(languageHome), | |||
true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preinstaller shall be able to download. Passing true
.
@@ -77,6 +87,6 @@ object EditionManager { | |||
distributionManager: DistributionManager, | |||
languageHome: Option[LanguageHome] = None | |||
): EditionManager = new EditionManager( | |||
makeEditionProvider(distributionManager, languageHome) | |||
makeEditionProvider(distributionManager, languageHome, false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By default build non-updating edition manager in production.
Pull Request Description
Fixes #9231 by using
FileSystemEditionManager
and notUpdatingEditionManager
to avoid any downloads of editions.Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,
style guides.