Skip to content

Search for .ir and .bindings caches in their own appropriate locations #12027

@Akirathan

Description

@Akirathan

There are two possible locations for an IR cache:

  • distribution stored inside built-distribution.
    • Filled with buildEngineDistribution that compiles all the standard libraries with something like enso --compile distribution/lib/Standard/Base --no-global-cache
  • per user stored inside ~/.local/share/enso/cache.

Recently, we have encountered an issue with IR versions mismatch that caused all the PRs to be blocked - #12026. The description of that PR enumerates the steps that were taken on the CI before all the PRs were blocked.

I believe that the proper fix to prevent these problems in the future is not 75ac103, but to change the behavior of IR cache loader to prefer distribution cache. And only try loading from per user cache if there is a version mismatch in distribution cache.

Metadata

Metadata

Labels

Type

No type

Projects

Status

🟢 Accepted

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions