Skip to content

Commit 418bd08

Browse files
add test
1 parent 98f50c7 commit 418bd08

File tree

3 files changed

+65
-0
lines changed

3 files changed

+65
-0
lines changed

test/loading.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,6 +1341,18 @@ end
13411341
end
13421342
end
13431343

1344+
@testset "Fallback for stdlib deps if manifest deps aren't found" begin
1345+
mktempdir() do depot
1346+
# This manifest has a LibGit2 entry that is missing LibGit2_jll, which should be
1347+
# handled by falling back to the stdlib Project.toml for dependency truth.
1348+
badmanifest_test_dir = joinpath(@__DIR__, "project", "deps", "BadStdlibDeps.jl")
1349+
@test success(addenv(
1350+
`$(Base.julia_cmd()) --project=$badmanifest_test_dir --startup-file=no -e 'using LibGit2'`,
1351+
"JULIA_DEPOT_PATH" => depot * Base.Filesystem.pathsep(),
1352+
))
1353+
end
1354+
end
1355+
13441356
@testset "code coverage disabled during precompilation" begin
13451357
mktempdir() do depot
13461358
cov_test_dir = joinpath(@__DIR__, "project", "deps", "CovTest.jl")
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# This file is machine-generated - editing it directly is not advised
2+
3+
julia_version = "1.12.0-DEV"
4+
manifest_format = "2.0"
5+
project_hash = "dc9d33b0ee13d9466bdb75b8d375808a534a79ec"
6+
7+
[[deps.Artifacts]]
8+
uuid = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
9+
version = "1.11.0"
10+
11+
# This is intentionally missing LibGit2_jll for testing purposes
12+
[[deps.LibGit2]]
13+
deps = ["NetworkOptions", "Printf", "SHA"]
14+
uuid = "76f85450-5226-5b5a-8eaa-529ad045b433"
15+
version = "1.11.0"
16+
17+
[[deps.LibGit2_jll]]
18+
deps = ["Artifacts", "LibSSH2_jll", "Libdl", "MbedTLS_jll"]
19+
uuid = "e37daf67-58a4-590a-8e99-b0245dd2ffc5"
20+
version = "1.8.0+0"
21+
22+
[[deps.LibSSH2_jll]]
23+
deps = ["Artifacts", "Libdl", "MbedTLS_jll"]
24+
uuid = "29816b5a-b9ab-546f-933c-edad1886dfa8"
25+
version = "1.11.0+1"
26+
27+
[[deps.Libdl]]
28+
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
29+
version = "1.11.0"
30+
31+
[[deps.MbedTLS_jll]]
32+
deps = ["Artifacts", "Libdl"]
33+
uuid = "c8ffd9c3-330d-5841-b78e-0817d7145fa1"
34+
version = "2.28.6+1"
35+
36+
[[deps.NetworkOptions]]
37+
uuid = "ca575930-c2e3-43a9-ace4-1e988b2c1908"
38+
version = "1.2.0"
39+
40+
[[deps.Printf]]
41+
deps = ["Unicode"]
42+
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7"
43+
version = "1.11.0"
44+
45+
[[deps.SHA]]
46+
uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"
47+
version = "0.7.0"
48+
49+
[[deps.Unicode]]
50+
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
51+
version = "1.11.0"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[deps]
2+
LibGit2 = "76f85450-5226-5b5a-8eaa-529ad045b433"

0 commit comments

Comments
 (0)