Skip to content

Commit 0c7e5b4

Browse files
committed
only use the stdlib version cache if a custom version is given to the resolver
some workflows requires the ability to inject custom stdlibs when building Julia, the stdlib cache breaks that. The stdlib cache is now only used when one wants to resolve something for a custom Julia version (for example BinaryBuilder). (cherry picked from commit feada14)
1 parent 83740a9 commit 0c7e5b4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Types.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,11 @@ is_stdlib(uuid::UUID) = uuid in keys(stdlibs())
365365

366366
# Allow asking if something is an stdlib for a particular version of Julia
367367
function is_stdlib(uuid::UUID, julia_version::Union{VersionNumber, Nothing})
368+
# Only use the cache if we are asking for stdlibs in a custom Julia version
369+
if julia_version == VERSION
370+
return is_stdlib(uuid)
371+
end
372+
368373
# If this UUID is known to be unregistered, always return `true`
369374
if haskey(UNREGISTERED_STDLIBS, uuid)
370375
return true

0 commit comments

Comments
 (0)