Prevent crash if `.julia/registries` does not exist
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
Research direction
Reproduce the crash by running juliapkg.add() in a fresh Julia environment where .julia/registries is absent, then trace the registry handling from that entry point. Done means juliapkg.add() completes without requiring the caller to create the directory, including in a fresh CI-style environment.
Written by the indexing model from the issue text.
Description
In the current implementation, upon doing juliapkg.add() in an environment where .julia/registries does not yet exist, juliapkg crashes.
This may seem like an edge case, but is a common occurrence for CI and testing where Julia environments are commonly freshly instantiated and have not yet been used before using juliapkg, e.g. with julia-actions/setup-julia@v3.
My current workaround is to create the folder from the test script if it doesn't exist, but it would be better if juliapkg handles this without crashing. Hope that can be arranged!
- Dominant language
- Python
- Stars
- 67
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from JuliaPy/pyjuliapkg
-
Difficulty 5/5 Over a week Newbie friendliness 38/100
JuliaPy/pyjuliapkg#96 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
JuliaPy/pyjuliapkg#79 · 4 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
JuliaPy/pyjuliapkg#78 · 2 comments ·
-
If you used add with dev + a relative path an absolute path ends up on Manifest.toml / meta.json Open
Difficulty 3/5 1-2 days Newbie friendliness 42/100
JuliaPy/pyjuliapkg#77 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
JuliaPy/pyjuliapkg#75 · 3 comments ·
All issues in JuliaPy/pyjuliapkg
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100