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

Adding Github repo does not add [sources] section in Project.toml #4124

Open
mitiemann opened this issue Dec 31, 2024 · 0 comments
Open

Adding Github repo does not add [sources] section in Project.toml #4124

mitiemann opened this issue Dec 31, 2024 · 0 comments

Comments

@mitiemann
Copy link

Adding a Github repo does not add an [sources] entry in the Project.toml, leading to an unhelpful error message. This happens both in Pkg REPL mode and in API mode.

MWE:

mkdir {A,B}
cd A
julia -e 'import Pkg; Pkg.activate("."); Pkg.add(url="https://github.com/tlienart/Xranklin.jl.git")'
cd ../B
cp ../A/Project.toml .
julia --project=@. -e 'import Pkg; Pkg.instantiate()'

throws a pkgerror:

ERROR: expected package `Xranklin [558449b0]` to be registered
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