`rig proj add "<package>@ = <version>"` doesn't work with PPM

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

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

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

評価

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

調査の方向性

Start by reproducing with rig proj add "glue@= 1.8.0" in a project whose rproj.toml lists the PPM repository, then check how the written constraint is parsed. The error reads glue >=1.8.0, <1.8.0, which suggests the exact pin is being turned into a bad range before the solver runs. Done means the pinned version resolves against PPM archive metadata and rproj.toml is updated; the discussion in the four comments should be read first to see whether maintainers have already diagnosed it.

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

説明

Heya,

Apologies can't tell if this is a bug or an issue with PPM or just a misunderstanding on my behalf (apologies if the latter) but doesn't look like specific version pinning works with PPM repositories e.g.

[project]
name = "xxx-testing-rig"
version = "0.1.0"
type = "project"

[dependencies]
R = ">= 4.6"


[[repository]]
name = "mycran"
url = "https://packagemanager.posit.co/cran/latest"

[[repository]]
name = "cran"
enabled = false


[[repository]]
name = "bioc"
enabled = false
> rig proj add "glue@= 1.8.0"
✓ Added glue (= 1.8.0) to rproj.toml
▶ Reading dependencies from rproj.toml
▶ Downloading binary package metadata
▶ Solving dependencies for 4 targets
✗ Cannot resolve dependencies for R 4.6.1 / aarch64-apple-darwin:
  this project depends on glue >=1.8.0, <1.8.0
  No version of glue matches >=1.8.0, <1.8.0.
  Nearest available versions: 1.8.1 (above).
✗ Could not resolve the dependencies, rproj.toml unchanged

At least my understand was that PPM should have all the archive versions for older package versions so would have expected this to work. Again apologies if I'm doing something wrong.

Debug

> rig --version
RIG -- The R Installation Manager 0.11.0

MacOS Tahoe

主要言語
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 を短くまとめたダイジェスト。