Skip to content

Commit

Permalink
Merge pull request #55 from wlandau/main
Browse files Browse the repository at this point in the history
restrict snapshot binaries to current R release
  • Loading branch information
wlandau authored Feb 7, 2025
2 parents a6d568a + 491f201 commit da4ecd2
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: multiverse.internals
Title: Internal Infrastructure for R-multiverse
Description: R-multiverse requires this internal infrastructure package to
automate contribution reviews and populate universes.
Version: 0.3.4.9000
Version: 0.3.5
License: MIT + file LICENSE
URL:
https://r-multiverse.org/multiverse.internals/,
Expand Down
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# multiverse.internals 0.3.4.9000
# multiverse.internals 0.3.5

* Depend on R >= 4.4.0 for the base coalescing operator `%||%`.
* Only snapshot binaries for the current R release.

# multiverse.internals 0.3.4

Expand Down
2 changes: 1 addition & 1 deletion R/interpret_status.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ interpret_title <- function(issue, package) {
"R-multiverse found issues with package ",
package
)
if (is.character(issue$version)) {
if (is.character(issue$versions)) {
title <- paste(title, "version", issue$version)
}
if (is.character(issue$remote_hash)) {
Expand Down
2 changes: 1 addition & 1 deletion R/propose_snapshot.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ propose_snapshot <- function(
path_staging,
repo_staging = "https://staging.r-multiverse.org",
types = c("src", "win", "mac"),
r_versions = NULL,
r_versions = gsub("\\.[0-9]*$", "", rversions::r_release()$version),
mock = NULL
) {
path_issues <- file.path(path_staging, "issues.json")
Expand Down
2 changes: 1 addition & 1 deletion man/propose_snapshot.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions multiverse.internals.Rproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Version: 1.0
ProjectId: f0e71035-91a8-430a-9b3f-1f305789d6d0

RestoreWorkspace: Default
SaveWorkspace: Default
Expand Down
5 changes: 4 additions & 1 deletion tests/testthat/test-propose_snapshot.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ test_that("propose_snapshot()", {
readLines(file.path(path_staging, "snapshot.url")),
paste0(
"https://staging.r-multiverse.org/api/snapshot/zip",
"?types=src,win,mac&packages=good1,good2"
"?types=src,win,mac",
"&binaries=",
gsub("\\.[0-9]*$", "", rversions::r_release()$version),
"&packages=good1,good2"
)
)
propose_snapshot(
Expand Down

0 comments on commit da4ecd2

Please sign in to comment.