Skip to content

Commit

Permalink
Update method_url.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Oct 2, 2024
1 parent f817dd9 commit 967b572
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runner/PlutoRunner/src/display/method_url.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module BrowserMacrosLite

using Base: UUID, PkgId, load_path, url
using Pkg.Types: manifestfile_path, read_manifest
using Pkg.Registry: reachable_registries
using Pkg
using Pkg.Operations: find_urls

ismatching(r::Regex, s) = !isnothing(match(r, s))
Expand Down Expand Up @@ -98,7 +98,7 @@ function _version(id::PkgId)
end

function _url(id::PkgId)
urls = find_urls(reachable_registries(), id.uuid)
urls = find_urls(Pkg.Registry.reachable_registries(), id.uuid)
isempty(urls) && error("Could not find module $id in reachable registries.")
return first(splitext(first(urls))) # strip ".git" ending
end
Expand Down

0 comments on commit 967b572

Please sign in to comment.