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

Pkg.Registry.add w/ Julia 1.1 #83

Open
colinxs opened this issue Aug 11, 2019 · 0 comments
Open

Pkg.Registry.add w/ Julia 1.1 #83

colinxs opened this issue Aug 11, 2019 · 0 comments

Comments

@colinxs
Copy link

colinxs commented Aug 11, 2019

This isn't an issue with HolyLabRegistry, but you seem to have the best handle of anyone I've seen on using non-General registries so I figured I'd ask here. Apologies in advance clogging up your repo! Feel free to close this issue.

Using your readme I was able to get my own registry (a private GH repo) working with Registrator + Travis. I'm curious about the verbose script you use to add the registry to Travis (if [[ -a .git/shallow ]]; then git fetch --unshallow; fi...). I figured with Julia 1.1 I would be able to just do using Pkg; Pkg.Registry.add(...) but that results in the following error:

$ julia --color=yes -e 'using Pkg; Pkg.Registry.add(RegistrySpec(url="[email protected]:colinxs/JuliaRegistry.git"))'
   Cloning registry from "[email protected]:colinxs/JuliaRegistry.git"
     Added registry `JuliaRegistry` to `~/.julia/registries/JuliaRegistry`
The command "julia --color=yes -e 'using Pkg; Pkg.Registry.add(RegistrySpec(url="git@github.com:colinxs/JuliaRegistry.git"))'" exited with 0.
2.90s$ julia --color=yes -e 'using Pkg; Pkg.activate(); Pkg.instantiate(); Pkg.test()'
  Updating registry at `~/.julia/registries/JuliaRegistry`
  Updating git-repo `[email protected]:colinxs/JuliaRegistry.git`
ERROR: AssertionError: haskey(hashes, uuid)
Stacktrace:
 [1] version_data!(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Operations.jl:426
 [2] #instantiate#67(::Nothing, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/API.jl:466
 [3] instantiate at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/API.jl:442 [inlined]
 [4] #instantiate#66 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/API.jl:440 [inlined]
 [5] instantiate() at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/Pkg/src/API.jl:440
 [6] top-level scope at none:0
The command "julia --color=yes -e 'using Pkg; Pkg.activate(); Pkg.instantiate(); Pkg.test()'" exited with 1.

I tried looking into this but wasn't able to make heads or tails of what's going on and can't replicate the issue on a local machine. The lack of a helpful error message on which uuid is missing doesn't help either (related to JuliaLang/Pkg.jl#1172).

If you have any insight, I'm all ears!

Thanks in advance,
Colin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant