diff --git a/src/serializer.jl b/src/serializer.jl index e3ad1e9..49a31c7 100644 --- a/src/serializer.jl +++ b/src/serializer.jl @@ -91,7 +91,7 @@ function _stripcode( cd(@__DIR__) do pkgid = Base.PkgId(Base.UUID("9e88b42a-f829-5b0c-bbe9-9e923198166b"), "Serialization") buffer = seekstart(IOBuffer(xor.(read(\"$(basename(jls))\"), $(repr(xorshift))))) - for x in Base.require(pkgid).deserialize(buffer).args + for x in Base.invokelatest(Base.require(pkgid).deserialize, buffer).args Core.eval(@__MODULE__, x) end end diff --git a/test/PackageBundler.toml b/test/PackageBundler.toml index 1a780a8..97a002c 100644 --- a/test/PackageBundler.toml +++ b/test/PackageBundler.toml @@ -5,6 +5,8 @@ environments = [ "environments/1.9/Bundle@0.2.0", "environments/1.10/Bundle@0.1.0", "environments/1.10/Bundle@0.2.0", + "environments/1.11/Bundle@0.1.0", + "environments/1.11/Bundle@0.2.0", ] outputs = [ "build/LocalCustomRegistry", diff --git a/test/environments/1.11/Bundle@0.1.0/Project.toml b/test/environments/1.11/Bundle@0.1.0/Project.toml new file mode 100644 index 0000000..fe41893 --- /dev/null +++ b/test/environments/1.11/Bundle@0.1.0/Project.toml @@ -0,0 +1,6 @@ +[deps] +Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b" +TestPackage = "8346427c-08d3-4941-a1ec-6285c85e2ad6" + +[compat] +TestPackage = "= 0.1.0" diff --git a/test/environments/1.11/Bundle@0.2.0/Project.toml b/test/environments/1.11/Bundle@0.2.0/Project.toml new file mode 100644 index 0000000..341cbe3 --- /dev/null +++ b/test/environments/1.11/Bundle@0.2.0/Project.toml @@ -0,0 +1,6 @@ +[deps] +Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b" +TestPackage = "8346427c-08d3-4941-a1ec-6285c85e2ad6" + +[compat] +TestPackage = "= 0.2.0" diff --git a/test/runtests.jl b/test/runtests.jl index 9cf516d..a2fe3e0 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -249,7 +249,7 @@ end count += 1 end end - @test count == 4 + @test count == 6 end end end diff --git a/test/scripts/verify.jl b/test/scripts/verify.jl index aa719cf..13a800b 100644 --- a/test/scripts/verify.jl +++ b/test/scripts/verify.jl @@ -19,5 +19,5 @@ import TOML count += 1 end end - @test count == 4 + @test count == 6 end