Skip to content

Commit 537a703

Browse files
authored
[release-1.6] Only compare Major, Minor, Patch in is_stdlib() (#2340)
1 parent b359adf commit 537a703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Types.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ function is_stdlib(uuid::UUID, julia_version::Union{VersionNumber, Nothing})
379379
# that corresponds to the requested version, and use that.
380380
last_stdlibs = Dict{UUID,String}()
381381
for (version, stdlibs) in STDLIBS_BY_VERSION
382-
if julia_version < version
382+
if VersionNumber(julia_version.major, julia_version.minor, julia_version.patch) < version
383383
break
384384
end
385385
last_stdlibs = stdlibs

0 commit comments

Comments
 (0)