Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest version does not compile #90

Closed
baggepinnen opened this issue Jan 18, 2023 · 1 comment
Closed

Latest version does not compile #90

baggepinnen opened this issue Jan 18, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@baggepinnen
Copy link
Contributor

   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.8.5 (2023-01-08)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.8) pkg> activate --temp
  Activating new project at `/tmp/jl_d6zHyQ`

(jl_d6zHyQ) pkg> add PkgGraph
    Updating registry at `~/.julia/registries/JuliaSimRegistry`
    Updating git-repo `[email protected]:JuliaComputing/JuliaSimRegistry.git`
    Updating registry at `~/.julia/registries/General.toml`
   Resolving package versions...
   Installed DefaultApplication ─ v1.1.0
   Installed PkgGraph ─────────── v0.5.0
    Updating `/tmp/jl_d6zHyQ/Project.toml`
  [f9c1b9e4] + PkgGraph v0.5.0

julia> using PkgGraph
[ Info: Precompiling PkgGraph [f9c1b9e4-72e8-4a14-ade5-14f45fc35f11]
ERROR: LoadError: AssertionError: reg.name == "General"
Stacktrace:
  [1] top-level scope
    @ ~/.julia/packages/PkgGraph/PcO3t/src/modules/DepGraph/registry.jl:8
@baggepinnen
Copy link
Contributor Author

baggepinnen commented Jan 18, 2023

This issue is this

const reg = first(reachable_registries())
@assert reg.name == "General"

but this fails if you have more than general added as registry. In my case, I have a private registry as well and this registry comes first in the list.

This issue is fixed by

baggepinnen added a commit to baggepinnen/PkgGraph.jl that referenced this issue Jan 18, 2023
@tfiers tfiers added the bug Something isn't working label Jan 18, 2023
@tfiers tfiers closed this as completed in b475501 Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants