-
Notifications
You must be signed in to change notification settings - Fork 154
Description
The host
passed at top level is passed to the dependencies. This causes the install to fail when the dependency host should be different.
Consider:
-
Package A on bitbucket. Its
DESCRIPTION
has aRemotes
field withgithub::antoine-sachet/packageB
-
Package B on github.
Installing package A with install_bitbucket("bbuser/packageA")
fails!
Indeed, with the host
in ...
being passed to the dependencies, I end up with a github_remote
with host = "api.bitbucket.org/2.0". Incidentally, this results in #322.
This issue was introduced by #145 ... It's a bad idea to pass the host to dependencies. I thought the correct way to specify the dependencies' hosts was through the "Remotes" field of the DESCRIPTION?
This is also to some extent a security concern. My credentials are passed to a dependency's host if the corresponding XXX_remote()
matches the arguments of install_YYY()
.