From 07dbf5d125e90d6d909b15630d24f24c363be753 Mon Sep 17 00:00:00 2001 From: Alberson Miranda Date: Wed, 4 Sep 2024 22:41:00 -0300 Subject: [PATCH] use Github version of extendr-api and updating snapshots --- R/use_extendr.R | 2 +- tests/testthat/_snaps/use_cran_defaults.md | 4 ++++ tests/testthat/_snaps/use_extendr.md | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/R/use_extendr.R b/R/use_extendr.R index e0694db3..8085f81d 100644 --- a/R/use_extendr.R +++ b/R/use_extendr.R @@ -137,7 +137,7 @@ use_extendr <- function(path = ".", cargo_toml_content <- to_toml( package = list(name = crate_name, publish = FALSE, version = "0.1.0", edition = edition), lib = list(`crate-type` = array("staticlib", 1), name = lib_name), - dependencies = list(`extendr-api` = "*") + dependencies = list(`extendr-api` = list(git = "https://github.com/extendr/extendr")) ) use_rextendr_template( diff --git a/tests/testthat/_snaps/use_cran_defaults.md b/tests/testthat/_snaps/use_cran_defaults.md index 1a82aaf0..b491d64c 100644 --- a/tests/testthat/_snaps/use_cran_defaults.md +++ b/tests/testthat/_snaps/use_cran_defaults.md @@ -268,6 +268,10 @@ [source.crates-io] replace-with = "vendored-sources" + [source."git+https://github.com/extendr/extendr"] + git = "https://github.com/extendr/extendr" + replace-with = "vendored-sources" + [source.vendored-sources] directory = "vendor" diff --git a/tests/testthat/_snaps/use_extendr.md b/tests/testthat/_snaps/use_extendr.md index a39e67fc..185d907a 100644 --- a/tests/testthat/_snaps/use_extendr.md +++ b/tests/testthat/_snaps/use_extendr.md @@ -169,7 +169,7 @@ name = 'testpkg' [dependencies] - extendr-api = '*' + extendr-api = { git = 'https://github.com/extendr/extendr' } --- @@ -240,7 +240,7 @@ name = 'bar' [dependencies] - extendr-api = '*' + extendr-api = { git = 'https://github.com/extendr/extendr' } # use_rextendr_template() can overwrite existing files