Skip to content
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

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

JaroslavTulach
Copy link
Member

@JaroslavTulach JaroslavTulach commented Jun 29, 2024

Pull Request Description

Fixes #9231 by using FileSystemEditionManager and not UpdatingEditionManager to avoid any downloads of editions.

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • All code follows the
    Scala,
    Java,
    style guides.
  • Unit tests were updated to pass

@JaroslavTulach JaroslavTulach added the CI: No changelog needed Do not require a changelog entry for this PR. label Jun 29, 2024
@JaroslavTulach JaroslavTulach requested a review from radeusgd June 29, 2024 14:56
@JaroslavTulach JaroslavTulach self-assigned this Jun 29, 2024
@JaroslavTulach JaroslavTulach added the CI: Clean build required CI runners will be cleaned before and after this PR is built. label Jun 29, 2024
EditionManager.makeEditionProvider(
distributionManager,
Some(languageHome),
false
Copy link
Member Author

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
Copy link
Member Author

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
Copy link
Member Author

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)
Copy link
Member Author

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.

@JaroslavTulach JaroslavTulach merged commit 5e3a5b7 into develop Jul 3, 2024
43 checks passed
@JaroslavTulach JaroslavTulach deleted the wip/jtulach/NoDownload9231 branch July 3, 2024 05:33
@JaroslavTulach JaroslavTulach linked an issue Jul 16, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: Clean build required CI runners will be cleaned before and after this PR is built. CI: No changelog needed Do not require a changelog entry for this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

enso-bundle tries to download missing engine Fail instead of trying to download anything
5 participants