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

Base.compilecache_path is misbehaving #38101

Closed
vtjnash opened this issue Oct 19, 2020 · 1 comment · Fixed by #38105
Closed

Base.compilecache_path is misbehaving #38101

vtjnash opened this issue Oct 19, 2020 · 1 comment · Fixed by #38105
Labels
regression Regression in behavior compared to a previous version

Comments

@vtjnash
Copy link
Sponsor Member

vtjnash commented Oct 19, 2020

As a pure function of the inputs, I'm not sure why this is no longer giving the same answers:

julia> Base.compilecache_path(Base.identify_package("Pkg"))
"/home/vtjnash/.julia/compiled/v1.6/Pkg/tUTdb_75wtU.ji"

julia> Base.compilecache_path(Base.identify_package("Pkg"))
"/home/vtjnash/.julia/compiled/v1.6/Pkg/tUTdb_Y4Mh0.ji"
@vtjnash vtjnash added the regression Regression in behavior compared to a previous version label Oct 19, 2020
@KristofferC
Copy link
Sponsor Member

Could you put some @show around

julia/base/loading.jl

Lines 1286 to 1291 in b08ad36

crc = _crc32c(something(Base.active_project(), ""))
crc = _crc32c(unsafe_string(JLOptions().image_file), crc)
crc = _crc32c(unsafe_string(JLOptions().julia_bin), crc)
crc = _crc32c(get_preferences_hash(pkg.uuid), crc)
project_precompile_slug = slug(crc, 5)
abspath(cachepath, string(entryfile, "_", project_precompile_slug, ".ji"))
to see what is different between the invocations?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression Regression in behavior compared to a previous version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants