`rig proj add "<package>@ = <version>"` doesn't work with PPM
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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 ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
r-lib/rig のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
bug documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
.Renviron activation in rig proj: handling project secrets and Posit Assistant restrictions対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
pop-os/cosmic-applets#1641 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
pop-os/cosmic-store#650 ·
-
CI/CD ignore-for-release
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
eclipse-ankaios/ankaios#844 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
hyperlight-dev/hyperlight-js#459 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信