Skip to content

Commit

Permalink
use Github version of extendr-api and updating snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
albersonmiranda committed Sep 5, 2024
1 parent 6b6be3d commit 07dbf5d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/use_extendr.R
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 4 additions & 0 deletions tests/testthat/_snaps/use_cran_defaults.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/use_extendr.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
name = 'testpkg'
[dependencies]
extendr-api = '*'
extendr-api = { git = 'https://github.com/extendr/extendr' }

---

Expand Down Expand Up @@ -240,7 +240,7 @@
name = 'bar'
[dependencies]
extendr-api = '*'
extendr-api = { git = 'https://github.com/extendr/extendr' }

# use_rextendr_template() can overwrite existing files

Expand Down

0 comments on commit 07dbf5d

Please sign in to comment.