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 · 2 comments
Open

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

mitiemann opened this issue Dec 31, 2024 · 2 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
@jakobnissen
Copy link
Contributor

Discussed in #3826 and #3783 (comment)

@mitiemann
Copy link
Author

Thanks! Is there anything that I could help with to move #3826 forwards?

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

2 participants