-
Notifications
You must be signed in to change notification settings - Fork 153
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
Manage dependencies from GitHub Enterprise #448
Comments
@ijlyttle How wonder how you do that with |
The package maintainers can speak on this with infinitely-greater authority than I can: I think that extensibility mechanisms are something they are thinking about across r-lib, e.g. To address @cderv's point, the I can't get the The central idea is to use a
Can be expressed, roughly equivalently, as:
Using a URL means that I don't have access to specific branches or releases, but I can point it at a repository on GitHub Enterprise. Update: I'm wrong - you can access specific branches or releases, see @jimhester's comment 👇 Hope this helps! |
This is what I thought. I got the same idea. I use that for gitlab on my side. Not the best way. It would be nice to have an option to tell remotes : « now we mean for github this url not github.com ». I guess it means a way to change globally the default host used in ˋinstall_github` and implicitly in ˋgithub_remoteˋ when parsing DESCRIPTION. Thanks @ijlyttle for you thoughts. |
Just a small clarification, you can access releases and branches, e.g. A specific release https://github.com/r-lib/remotes/archive/v2.1.0.zip A branch https://github.com/r-lib/remotes/archive/always-install-uninstalled.zip |
Sorry for the inconvenience, Guys. When I point the
If I use |
@hector-ps: I can think of a couple of possibilities:
|
Hi, @ijlyttle. It's public inside my company, but my Enterprise instance of GitHub is not public. To install the repositories using |
Hi @hector-ps, If it is public inside your company, you should be able to use the "Copy Link Address" value |
Hi @hector-ps I managed to do it for my package on Github Enterprise. For the installation please use:
Then for the dependency I can confirm that Please note that it's a link to a zip file for a given released version (in particular: it's not a git zip file for a branch that is presented above). In my case that's a significant limitation because I really want to use branch names, PR and also @jimhester Is there any plans for adding |
I am also looking into making remotes work from Github Enterprise. So far, we have been using mostly SSH keys and works using the normal git protocol. However, the normal git protocol does not support branches or tags. git2r then complains that the url is wrong, which is technically correct. I then tried to use the url protocol, but that fails with the following message:
I tried downloading the file with download.file and I seem to be getting some login page html. :( So, now I have found this thread. And using the code snippet from @pawelru it works, also for branches and tags. Maybe we could have something like this: Or what would work for me as well is: I am not sure which one is easiest to implement. |
If you're on windows and you're finding that: # R
remotes::install_git("git@example.com:me/mypkg.git", git = "ext") seems to fail, while # bash
git clone git@example.com:me/mypkg.git works, it's worth noting that, though both call the same This behavious confused me for a long while, and was the reason that using ssh keys to access my enterprise repos wasn't working on windows, but did work on other platforms. |
Is this resolved by #541? I was able to use Enterprise GitHub in DESCRIPTION with:
|
Dependencies from GitHub can be managed by including
Remotes: [remote::]repo_spec
in theDESCRIPTION
file. Downloading packages from GitHub Enterprise requires the argumenthost
oninstall_github
, that cannot be defined in theDESCRIPTION
file. While I understand that the general approach for packaging and sharing R code is using public repositories, company policies usually forces the developer to use private GitHub Enterprise. Are you considering to add a way for indicating inside theDESCRIPTION
file thehost
to use?The text was updated successfully, but these errors were encountered: