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

More easily handle case where repos are split between two remotes #142

Open
nikolas-burkoff opened this issue Nov 11, 2021 · 0 comments
Open

Comments

@nikolas-burkoff
Copy link
Contributor

nikolas-burkoff commented Nov 11, 2021

Normally you can install the whole of your internal packages by doing the following:

x <- dependency_table("path/to/any_repo@https://remote.com", "repo@host", ref = "main")
install_deps(x, direction = "all")

But if your internal dependency packages are split between two different remotes one which is public and one which is private - so that the staged.dependency.yaml files in the public remote never reference those on the private remote then it's not as easy to install everything:

If t.c.1, t.c.2 and h.r are packages on the private remote (not connected via staged.deps yaml files) and t.m.h is a package in the public remote then you need to do the following:

x <- dependency_table("ie/t.m.h@https://public.com", "repo@host", ref = "main")
install_deps(x, direction = "all")

lapply(c("t.c.1", "t.c.2", "h.r"), function(pkg){
  x <- dependency_table(paste0(pkg, "@https://private.com", "repo@host", ref = "main")
  install_deps(x, direction = "all") # won't reinstall already installed packages
})

This could be simplified?

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

No branches or pull requests

1 participant