Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't update suggested dependencies #1752

Merged
merged 6 commits into from Jan 25, 2023
Merged

Don't update suggested dependencies #1752

merged 6 commits into from Jan 25, 2023

Conversation

hadley
Copy link
Member

@hadley hadley commented Jan 24, 2023

Fixes #1749

Also a nice opportunity to use the new proj_deps() helper in the tests.

@hadley hadley requested a review from jennybc January 24, 2023 22:49
R/latest-dependencies.R Outdated Show resolved Hide resolved
Comment on lines 17 to 25
test_that("use_tidy_versions() doesn't affect suggests", {
skip_on_cran()
withr::local_options(list(repos = c(CRAN = "https://cloud.r-project.org")))

create_local_package()
use_package("cli", "Suggests")

deps <- proj_deps()
expect_equal(deps$version[deps$package == "cli"], "*")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see a call to use_tidy_versions() (or use_latest_dependencies()) here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooops 😆

hadley and others added 3 commits January 25, 2023 08:22
Co-authored-by: Jennifer (Jenny) Bryan <jenny.f.bryan@gmail.com>
Copy link
Member

@jennybc jennybc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My parting thought is: the tests mention use_tidy_versions() but then actually call use_latest_dependencies(). Do we want to make that less puzzling?

@hadley
Copy link
Member Author

hadley commented Jan 25, 2023

Oh I didn't even notice that; fixed now.

@hadley hadley merged commit 9db9ab7 into main Jan 25, 2023
@hadley hadley deleted the latest-suggests branch January 25, 2023 19:29
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.

use_latest_dependencies() shouldn't affect Suggests
2 participants