Skip to content

Commit 2ea46a6

Browse files
committed
Sources: Error if no registries in depot
1 parent cee4dae commit 2ea46a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

BinaryBuilderSources.jl/src/JLLSource.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ function prepare(jlls::Vector{JLLSource};
120120
if jll.package.uuid === nothing
121121
if registries === nothing
122122
registries = Pkg.Registry.reachable_registries(; depots=[depot])
123+
if isempty(registries)
124+
error("No reachable registries in depot '$(depot)'?")
125+
end
123126
end
124127
jll.package.uuid = Pkg.Types.registered_uuid(registries, jll.package.name)
125128
if jll.package.uuid === nothing

0 commit comments

Comments
 (0)