Let `cran` and `bioc` be mapped to another server, e.g. an internal PPM
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by tracing how --with-repos, rproj.toml, and rproj.lock handle cran and bioc, then follow how package history and downloads choose a server. The proposal’s done criteria are mapped URLs recorded in the lockfile and package downloads coming from the configured server, with the specified PPM and CRAN-mirror behavior.
索引モデルが issue の本文から書いたものです。
説明
Problem
Many organizations point R's cran at an internal Posit Package Manager (PPM) or a CRAN mirror. In rig:
--with-repos cran=<URL>fails with "already a repository of the project, with another URL", because the built-incranentry has no URL.- A
cranorbiocentry inrproj.tomlcannot take aurl. - Adding the server under another name and setting
crantoenabled = falseworks for solving, because acranorppm-cranrepository replaces the built-in feed. Butrepository = "cran"pins,--without-repos=cran, and the meaning ofcraninrproj.lockthen refer to the wrong thing. - Binaries are always downloaded from public P3M, whatever server the user configured. This breaks air-gapped installs and ignores the user's choice of server.
Proposal
-
Allow
--with-repos cran=<URL>(andbioc=<URL>), andurl = "..."on acranorbiocentry. This would mean "this is CRAN", andrproj.lockwould record the mapped URL. The current error stays for any other name that already exists with a different URL. -
The type of the mapped server would be detected as usual, or set with
type. -
rig would keep downloading the public package history from https://ppm.r-pkg.org (and https://ppm-bioc.r-pkg.org) unless
extend = falseis set. The history is only used to decide what to install; it is not where packages are downloaded from. -
Downloads always come from the server the user named:
- For a PPM, binaries come from the server's own
bin/linux/<distro>-<arch>/<R minor>/URLs, includingArchive/paths and dated snapshots. A source tarball served at a binary URL is detected and built from source (see #461). - For a CRAN mirror or another CRAN-like repository, rig never falls back to P3M, for binaries or for sources. Binaries come only from what the repository itself publishes (the
bin/indexes for macOS and Windows), so Linux installs are from source. If the repository does not have a package version that the metadata lists, rig reports an error, instead of fetching it from somewhere else.
Today a CRAN source package is downloaded from the mirror first and from PPM if the mirror does not have it. A mapped
cranshould not do that. - For a PPM, binaries come from the server's own
- 主要言語
- Rust
- スター
- 1k
- フォーク
- 41
- 平均マージ
- 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 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
speakeasy-api/speakeasy#2159 ·
メンテナーはふだん 1 日以内に返信
-
documentation target:powerpoint
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
tomast1337/PdfLapas#602 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信