`rig proj add <pkg>` gives contradictory messages if the package cannot be found

オープン
#464 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
r, rust
領域
cli, tooling

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

> 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"
主要言語
Rust
スター
1k
フォーク
42
平均マージ
9時間 33分
マージ済み PR(30日)
17

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

r-lib/rig のほかの issue

r-lib/rig の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。