Use rig in setup-r-dependencies

Aperta
#403 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
20/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
github-actions, r, rust
Ambito
ci-cd, devops, tooling

Direzione di ricerca

Start by reading the setup-r-dependencies integration described in the issue, then inspect src/pkgsource.rs:106, src/proj.rs:493, src/help/pkg-install.md, repos-plan.md, src/help/proj-import.md, and proj-lock.md. Run the existing relevant tests or CI workflows to identify one gap and its current failure. Done would require a scoped implementation with tests and working setup-rig-dependencies integration, but the issue lists multiple unresolved designs.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Gaps (roughly by importance)

  • #426
    No sysreqs lookup/install at all. pak's biggest CI feature.
    Needs: sysreqs DB (P3M sysreqs API or r-hub/r-system-requirements rules), distro
    detection (already exists for installing R), sudo handling, apt-get update.
  • #428
    No bioc:: refs, no Bioc repos, no Bioc-version-to-R-version mapping.
  • Configured / extra repositories. pkg and proj use only P3M/CRAN (help note in
    src/help/pkg-install.md, repos-plan.md). Missing: r-universe, drat, Additional_repositories,
    repos from setup-r's extra-repositories.
  • Config/Needs/<x> for rig pkg install. Only proj import reads them
    (src/proj.rs:493), and even there groups are "carried but not solved" per
    src/help/proj-import.md:41 (conflicts with proj-lock.md). CI needs --needs check,
    --needs website, etc.
  • pak ref syntax any:: and deps::. Not parsed (src/pkgsource.rs:106). Existing
    workflows use them everywhere; any::x could map to plain x, deps::path to
    --no-install-project path.
  • Finer dependency selection. Only hard vs --dev (Suggests + Enhances). pak allows
    "hard", TRUE, "all", explicit field lists, Config/Needs/*. Enhances are often
    unavailable; --dev may need --ignore-unavailable in CI where pak just works.
  • Lock-then-install split for caching. Need a stable resolution file to hash for the cache
    key (e.g. rig pkg install --dry-run --lockfile out.lock, then --from-lockfile), or a
    documented, cacheable rig cache dir (rig cache info --json path) as alternative.
    The resolution must be deterministic for the same inputs.
  • Working with the R that setup-r installs. setup-r uses its own installers
    (r-builds in /opt/R on Linux, CRAN pkg on macOS, CRAN exe on Windows); rig must find
    them, honor R_LIBS_USER set by the action, and work with system R (/usr/lib/R, e.g.
    rocker images) and in containers without sudo. Needs checking.
  • Upgrade semantics. rig always picks newest; pak default upgrade = FALSE keeps
    installed versions that satisfy constraints. Matters with restored caches and
    lockfile-create-lib.
  • GitHub auth. No GITHUB_PAT/GITHUB_TOKEN support; relies on git credentials.
    Fine for public repos; private Remotes: in CI need a token-to-git bridge.
  • Windows source builds. Relies on Rtools being present and found; confirm rig's
    R CMD INSTALL path works on GitHub runners.
  • Nice to have / could stay in the action: pandoc and quarto install, session info
    print (a rig pkg list with sources and versions table is close), failure log dumps
    (rig already points to _logs; CI wants the log printed inline).
  • The action itself. A setup-rig-dependencies (or new mode of the existing action)
    that wires rig + actions/cache together with the same inputs, so workflows switch
    with a one-line change.
Lingua principale
Rust
Stelle
1k
Fork
41
Merge medio
9h 33m
PR unite (30g)
17

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di r-lib/rig

Tutte le issue di r-lib/rig

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.