Skip to content

Commit

Permalink
Merge pull request #615 from JuliaIO/nightlyfix
Browse files Browse the repository at this point in the history
Nightlyfix
  • Loading branch information
JonasIsensee authored Nov 6, 2024
2 parents fce896f + b44ba60 commit 70f10de
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.5.8
- Stop using `Base.module_keys` as it is removed on nightly

## 0.5.7
- Fix edge case for uninitialized Vlens

Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "JLD2"
uuid = "033835bb-8acc-5ee8-8aae-3f567f8a3819"
version = "0.5.7"
version = "0.5.8"

[deps]
FileIO = "5789e2e9-d7fb-5bc7-8068-2c6fae9b9549"
Expand Down
4 changes: 1 addition & 3 deletions src/data/reconstructing_datatypes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,7 @@ function _resolve_type(rr::MappedRepr{T,DataTypeODR},
hasparams::Bool,
params) where T
parts = split(mypath, '.')
modules = vcat([Main], collect(keys(Base.module_keys)))
unique!(modules)
for mod in modules
for mod in values(Base.loaded_modules)
resolution_attempt = _resolve_type_singlemodule(rr,
mod,
parts,
Expand Down
6 changes: 3 additions & 3 deletions src/io/dataio.jl
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ function write_data(io::MemoryBackedIO, f::JLDFile, data::Array, odr, ::Referenc
nothing
end

function write_data(io::MemoryBackedIO, f::JLDFile, data::Array, odr, ::HasReferences, wsession::JLDWriteSession)
function write_data(io::MemoryBackedIO, f::JLDFile, data::Array, odr::ODR, ::HasReferences, wsession::JLDWriteSession) where ODR
ensureroom(io, odr_sizeof(odr) * length(data))
cp = IndirectPointer(io)

for i = eachindex(data)
if isassigned(data, i)
h5convert!(cp, odr, f, data[i], wsession)
Expand Down Expand Up @@ -273,4 +273,4 @@ function read_array!(v::Array{T}, f::JLDFile{MmapIO}, ::SameRepr{T}) where T
end
io.curptr = inptr + nb
v
end
end
2 changes: 1 addition & 1 deletion test/modules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ S = BType(x)
end

@testset "name collisions" begin
mods = collect(keys(Base.module_keys))
mods = collect(values(Base.loaded_modules))
# use whichever module would not be found first in a linear search
M = findfirst(==(A), mods) < findfirst(==(B), mods) ? B : A
x = M.SameNameType(42)
Expand Down

2 comments on commit 70f10de

@JonasIsensee
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register

Release Notes:

  • compatibility with nightly

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/118802

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.5.8 -m "<description of version>" 70f10de0d20ea46799b9c9f539eec6e118886756
git push origin v0.5.8

Please sign in to comment.