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

juliadir should probably not be cached during compile time #835

Open
KristofferC opened this issue Aug 1, 2024 · 1 comment
Open

juliadir should probably not be cached during compile time #835

KristofferC opened this issue Aug 1, 2024 · 1 comment

Comments

@KristofferC
Copy link
Collaborator

If you use another Julia installation that is compatible with the precompile file it will point to the wrong place:

julia> using Revise

julia> Sys.BINDIR
"/Users/kristoffercarlsson/Downloads/gitrepo/julia-1.10.4/bin"

# the Julia that Revise got compiled with:
julia> Revise.juliadir
"/Users/kristoffercarlsson/.julia/juliaup/julia-1.10.4+0.aarch64.apple.darwin14/share/julia"
@timholy
Copy link
Owner

timholy commented Sep 24, 2024

Good thought. I'm tempted to fix this by requiring Julia 1.10 and using typed globals, rather than making a Ref which changes the type of this variable. It's internal, but I wouldn't be shocked if people are depending on it regardless (it has a docstring).

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

No branches or pull requests

2 participants