Downgrade: raise PrecompileTools compat floor to 1.1#80
Merged
ChrisRackauckas merged 1 commit intoJun 15, 2026
Merged
Conversation
…olvable at downgrade minimum) At the downgrade minimum the `PrecompileTools = "1"` floor resolves to PrecompileTools v1.0.0, which does not define `@recompile_invalidations` (that macro was introduced in PrecompileTools v1.1.0). A transitive dependency, StaticArrayInterface, uses `@recompile_invalidations`, so precompilation fails with `UndefVarError: @recompile_invalidations not defined`, cascading to DiffEqBase / ModelingToolkit / MATLABDiffEq. Bumping the floor to 1.1 (the first version that defines the macro) forces the resolver to pick PrecompileTools >= 1.1.0 everywhere. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
ChrisRackauckas
marked this pull request as ready for review
June 15, 2026 04:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Downgrade fix: raise PrecompileTools compat floor to 1.1
The conflict
The
Downgradeworkflow fails on the LTS (Julia 1.10) during precompilation:Why the old floor was impossible
@recompile_invalidationsis a macro provided by PrecompileTools, and it was only introduced in PrecompileTools v1.1.0 (the v1.0.x line exports only@setup_workloadand@compile_workload). At the downgrade minimum the declaredPrecompileTools = "1"floor resolves to PrecompileTools v1.0.0. The transitive dependency StaticArrayInterface uses@recompile_invalidations, so on v1.0.0 it cannot precompile. The old floor was therefore never co-installable with the rest of the dependency tree at the downgrade minimum.The fix
Raise the floor to
PrecompileTools = "1.1"— the smallest version that defines@recompile_invalidations. This forces the resolver to pick PrecompileTools >= 1.1.0 everywhere.Resolve/precompile verification (local, Julia 1.10.11 = CI lts)
Isolated PrecompileTools + StaticArrayInterface, precompiled each:
Note on the latest-versions ("Tests") job
The
Testsworkflow onmasteris separately red, but for an unrelated reason: the MATLAB engine cannot be provisioned on the CI runner, soMATLAB.MSession(...)throwsUndefRefError: access to undefined referenceat runtime. That is an environment limitation, not a versioning issue, and is not addressed here. This PR only fixes the downgrade-specific precompile failure.This PR is a draft. Ignore until reviewed by @ChrisRackauckas.
🤖 Generated with Claude Code