Skip to content

112 direct GitHub remotes dependencines can fail to be fetched - #114

Closed
maksymiuks wants to merge 6 commits into
mainfrom
112-direct-github-remotes-dependencines-can-fail-to-be-fetched
Closed

maksymiuks wants to merge 6 commits into
mainfrom
112-direct-github-remotes-dependencines-can-fail-to-be-fetched

Conversation

@maksymiuks

Copy link
Copy Markdown
Collaborator

No description provided.

maksymiuks and others added 6 commits August 10, 2026 20:07
…tory (#107)

* Add option to specify options inherited by subprocesses

* Match repositories by prefix in strip_src_contrib()

R-universe repositories report the `Repository` field of
`available.packages()` as a full, per-package tarball url
(`.../src/contrib/<pkg>_<ver>.tar.gz?sha256=...&file=`) rather than the
plain contrib url that CRAN-like repositories report. Comparing that
field to `contrib.url(repo)` with `==` therefore never matched, so
`strip_src_contrib()` returned `character(0)`, `pkg_origin_repo()`
stored an empty `repos`, and `get_package_source()` failed at check time
with `subscript out of bounds`.

Match by prefix instead, so a per-package tarball url still resolves back
to its originating repository. `contrib.url()` is left at its default
`type`, matching the type `available_packages()` uses to produce the
`Repository` field, so binary repositories keep working.

No change is needed in `get_package_source()`: R-universe crafts the
`Repository` field so that appending `/<pkg>_<ver>.tar.gz` (what
`utils::download.packages()` does, and what `get_package_source()`
already did) yields a valid download url.

Fixes #106

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Szymon Maksymiuk <32574056+maksymiuks@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
* Add option to specify options inherited by subprocesses

* Slight improvments to the install_process env

* Update snapshot and NEWS
@maksymiuks maksymiuks linked an issue Nov 4, 2026 that may be closed by this pull request
@maksymiuks maksymiuks closed this Nov 4, 2026
@codecov

codecov Bot commented Nov 4, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 33.33333% with 30 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.03%. Comparing base (694ac18) to head (ce841a1).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
R/results.R 6.66% 14 Missing ⚠️
R/remotes.R 0.00% 9 Missing ⚠️
R/task.R 0.00% 5 Missing ⚠️
R/install.R 92.30% 1 Missing ⚠️
R/utils-deps.R 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #114      +/-   ##
==========================================
- Coverage   82.84%   82.03%   -0.82%     
==========================================
  Files          29       29              
  Lines        2262     2310      +48     
==========================================
+ Hits         1874     1895      +21     
- Misses        388      415      +27     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Direct github remotes dependencines can fail to be fetched

2 participants