Skip to content

wrong host passed to dependencies #337

@antoine-sachet

Description

@antoine-sachet

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 a Remotes field with github::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().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions