Skip to content

Commit

Permalink
Merge #91 from baggepinnen: multiple registries (with General not first)
Browse files Browse the repository at this point in the history
  • Loading branch information
tfiers authored Jan 18, 2023
2 parents 8c80d4b + 5e0c417 commit e4ae86c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ _{no changes yet}_ -->
post-processing. By default, `post = true`, and the SVG is still
post-processed like before, to add automatic dark & light mode
switching (see [`SVG.add_darkmode`])
- A bug preventing the package from precompiling when more than one registry
is registered has been fixed.

[introduced]: https://github.com/tfiers/PkgGraph.jl/issues/64#issuecomment-1380193445
[`depgraph_as_dotstr`]: https://tfiers.github.io/PkgGraph.jl/dev/ref/internals/#PkgGraph.depgraph_as_dotstr
Expand Down
4 changes: 2 additions & 2 deletions src/modules/DepGraph/registry.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ using Pkg.Registry: reachable_registries,
initialize_uncompressed!,
JULIA_UUID

const reg = first(reachable_registries())
@assert reg.name == "General"
regs = reachable_registries()
const reg = regs[findfirst(reg.name == "General" for reg in regs)]

name(uuid::UUID) =
if uuid in STDLIB_UUIDS
Expand Down

0 comments on commit e4ae86c

Please sign in to comment.