Let `cran` and `bioc` be mapped to another server, e.g. an internal PPM
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Rust
- Estrellas
- 1k
- Forks
- 41
- Merge medio
- 9 h 33 min
- PR fusionados (30 d)
- 17
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de r-lib/rig
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
r-lib/rig#535 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
r-lib/rig#483 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
.Renviron activation in rig proj: handling project secrets and Posit Assistant restrictionsPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
r-lib/rig#518 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Los mantenedores suelen responder en 1 día
-
.Rbuildignore is not followedAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
r-lib/rig#499 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
speakeasy-api/speakeasy#2159 ·
Los mantenedores suelen responder en 1 día
-
documentation target:powerpoint
Dificultad 1/5 Menos de una hora Aptitud para principiantes 76/100
tomast1337/PdfLapas#602 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día