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

Revert "fix issue with loading stdlibs stalecheck inconsistency" #55064

Closed
wants to merge 1 commit into from

Conversation

KristofferC
Copy link
Sponsor Member

@KristofferC KristofferC commented Jul 8, 2024

This reverts commit 2cf14aa (reverts #54891)

Fixes #54940

This commit causes many packages to precompile on every load, take e.g. PhysicalConstants:

julia> using PhysicalConstants
┌ Debug: Loading object cache file /Users/kristoffercarlsson/.julia/compiled/v1.12/Calculus/G3wEN_cfgFb.dylib for Calculus [49dc2e85-a5d0-5ad3-a950-438e2897f1b9]
└ @ Base loading.jl:1227
┌ Debug: Loading object cache file /Users/kristoffercarlsson/.julia/juliaup/julia-nightly/share/julia/compiled/v1.12/Printf/3FQLY_MMwFm.dylib for Printf [de0858da-6303-5e67-8744-51eddeeeb8d7]
└ @ Base loading.jl:1227
┌ Debug: Rejecting cache file /Users/kristoffercarlsson/.julia/compiled/v1.12/PhysicalConstants/ykpMf_cfgFb.ji because required dependency Base.PkgId(Base.UUID("de0858da-6303-5e67-8744-51eddeeeb8d7"), "Printf") failed to load from cache file for /Users/kristoffercarlsson/.julia/juliaup/julia-nightly/share/julia/compiled/v1.12/Printf/3FQLY_MMwFm.ji.
│   exception = Error reading package image file.
└ @ Base loading.jl:1962

@KristofferC KristofferC requested a review from vtjnash July 8, 2024 07:39
vtjnash added a commit that referenced this pull request Jul 8, 2024
More followup to fix issues with require. There was an accidental
variable reuse (build_id) that caused it to be unable to load cache
files in many cases. There was also missing check for a dependency
already being loaded, resulting in trying to load it twice. Finally, the
start_loading code may drop the require_lock, but the surrounding code
was not prepared for that. Now integrate the necessary checks into
start_loading, instead of needing to duplicate them before and
afterwards.

Fixes #53983
Fixes #54940
Closes #55064
vtjnash added a commit that referenced this pull request Jul 8, 2024
More followup to fix issues with require. There was an accidental
variable reuse (build_id) that caused it to be unable to load cache
files in many cases. There was also missing check for a dependency
already being loaded, resulting in trying to load it twice. Finally, the
start_loading code may drop the require_lock, but the surrounding code
was not prepared for that. Now integrate the necessary checks into
start_loading, instead of needing to duplicate them before and
afterwards.

Fixes #53983
Fixes #54940
Closes #55064
vtjnash added a commit that referenced this pull request Jul 8, 2024
More followup to fix issues with require. There was an accidental
variable reuse (build_id) that caused it to be unable to load cache
files in many cases. There was also missing check for a dependency
already being loaded, resulting in trying to load it twice. Finally, the
start_loading code may drop the require_lock, but the surrounding code
was not prepared for that. Now integrate the necessary checks into
start_loading, instead of needing to duplicate them before and
afterwards.

Fixes #53983
Fixes #54940
Closes #55064
@vtjnash vtjnash closed this in fba928d Jul 11, 2024
KristofferC pushed a commit that referenced this pull request Jul 23, 2024
More followup to fix issues with require. There was an accidental
variable reuse (build_id) that caused it to be unable to load cache
files in many cases. There was also missing check for a dependency
already being loaded, resulting in trying to load it twice. Finally, the
start_loading code may drop the require_lock, but the surrounding code
was not prepared for that. Now integrate the necessary checks into
start_loading, instead of needing to duplicate them before and
afterwards.

Fixes #53983
Fixes #54940
Closes #55064

(cherry picked from commit fba928d)
@giordano giordano deleted the kc/revert_finish_up_stdlib branch July 24, 2024 14:25
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.

External Pkg always recompiles upon loading
1 participant