Skip to content

Fix Julia 1.11 compatibility#41

Open
andreasnoack wants to merge 1 commit into
timholy:mainfrom
andreasnoack:fix-julia-1.11-compat
Open

Fix Julia 1.11 compatibility#41
andreasnoack wants to merge 1 commit into
timholy:mainfrom
andreasnoack:fix-julia-1.11-compat

Conversation

@andreasnoack
Copy link
Copy Markdown

Summary

  • Handle different SimpleVector layout between Julia 1.11 (8 elements with ext_targets) and 1.12 (7 elements without) returned by jl_restore_incremental/jl_restore_package_image_from_file with completeinfo=true
  • Guard Core.GlobalMethods usage in count_internal_methods with @static if isdefined(Core, :GlobalMethods) since it only exists in Julia 1.12+
  • Only use the ocache (.dylib) path for pkgimage packages by checking !isempty(clone_targets), avoiding attempts to load non-existent .dylib files for non-pkgimage caches
  • Restore compat to julia = "1.11" and add 'min' (1.11) to the CI test matrix

Test plan

  • Verified info_cachefile("Pumas") works on Julia 1.11.9 (large pkgimage package with 524 dependencies)
  • Verified info_cachefile("Colors") works on Julia 1.11.9
  • CI passes on Julia 1.11, release, and nightly

🤖 Generated with Claude Code

- Handle different SimpleVector layout between Julia 1.11 (8 elements
  with ext_targets) and 1.12 (7 elements without) when completeinfo=true
- Guard Core.GlobalMethods usage with isdefined check since it only
  exists in Julia 1.12+
- Only use ocache (.dylib) path for pkgimage packages by checking
  clone_targets, avoiding CRC errors on non-pkgimage caches
- Restore compat to julia = "1.11" and add 1.11 to CI matrix

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant