Skip to content

Commit

Permalink
Use new HistoricalStdlibVersions register commands
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Jun 3, 2024
1 parent 8dcf555 commit 34ac794
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"

[compat]
HistoricalStdlibVersions = "2"

[sources]
HistoricalStdlibVersions = {url = "https://github.com/JuliaPackaging/HistoricalStdlibVersions.jl", rev = "sf/track_deps"}
4 changes: 2 additions & 2 deletions test/new.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3030,7 +3030,7 @@ end


@testset "Pkg.add() with julia_version" begin
append!(empty!(Pkg.Types.STDLIBS_BY_VERSION), HistoricalStdlibVersions.STDLIBS_BY_VERSION)
HistoricalStdlibVersions.register!()

# A package with artifacts that went from normal package -> stdlib
gmp_jll_uuid = "781609d7-10c4-51f6-84f2-b8444358ff6d"
Expand Down Expand Up @@ -3131,7 +3131,7 @@ end
@test !("Pkg" in keys(Pkg.dependencies()[p7zip_jll_uuid].dependencies))
end

empty!(Pkg.Types.STDLIBS_BY_VERSION)
HistoricalStdlibVersions.unregister!()
end


Expand Down
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ if realpath(dirname(dirname(Base.pathof(Pkg)))) != realpath(dirname(@__DIR__))
end

ENV["JULIA_PKG_PRECOMPILE_AUTO"]=0
ENV["HISTORICAL_STDLIB_VERSIONS_AUTO_REGISTER"]="false"

logdir = get(ENV, "JULIA_TEST_VERBOSE_LOGS_DIR", nothing)
### Send all Pkg output to a file called Pkg.log
Expand Down

0 comments on commit 34ac794

Please sign in to comment.