`rig proj add <pkg>` gives contradictory messages if the package cannot be found
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- Half a day
- Newbie friendliness
- 68/100
Research direction
The two contradictory lines are the Added foobar (*) to rproj.toml success message and the rproj.toml unchanged failure message, both printed by rig proj add when dependency solving fails. Find where the add step writes to rproj.toml and where the solver's failure path rolls it back, then reproduce with a nonexistent package name. Done means the output either reports the add only after a successful solve, or describes the rollback accurately, with no contradictory lines on failure.
Written by the indexing model from the issue text.
Description
> rig proj init
[ truncated]
> rig proj add foobar
✓ Added foobar (*) to rproj.toml # <<<<<<<< "Added to toml"
▶ Reading dependencies from rproj.toml
▶ Downloading binary package metadata
▶ Solving dependencies for 5 targets
✗ Cannot resolve dependencies for R 4.6.1 / x86_64-unknown-linux-gnu-ubuntu-24.04:
Package foobar is not available on CRAN or Bioconductor 3.23.
✗ Could not resolve the dependencies, rproj.toml unchanged # <<<<<<<< "toml unchanged"
- Dominant language
- Rust
- Stars
- 1k
- Forks
- 41
- Avg merge
- 9h 33m
- Merged PRs (30d)
- 17
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
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 r-lib/rig
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
bug documentation
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
.Renviron activation in rig proj: handling project secrets and Posit Assistant restrictionsPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 5/5 Over a week Newbie friendliness 15/100
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ubugeeei-prod/vize#13586 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
storytold/photocraft#16565 ·
Maintainers usually reply within 1 day
-
flaky needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
bherbruck/solvecraft#21315 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
undergroundrap/hatchling#624 ·
Maintainers usually reply within 1 day
-
node:url: url.parse and url.resolve report name parse/resolve instead of Node's urlParse/urlResolveOpenarea:stdlib effort:S impact:low parity type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day