-
Notifications
You must be signed in to change notification settings - Fork 154
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
Dependencies from GitLab #129
Comments
I'll try to take a look at this today -- thanks for reporting! |
I've just pushed a few commits to master that should ensure this is handled -- let me know if you're still seeing issues. (Use |
Thanks! I'll try it out :-) |
It doesn't seem to work :-( It looks like you have made a number of changes in the commit you refer to. In this block
I also include the subdir in
|
Hmm, perhaps I misunderstood a bit. Based on
In other words, it's normally used for sub-directories within the repository, as opposed to sub-repositories or sub-groups themselves. Since these are really semantically different things, I think they need to be expressed separately. In other words, I think the full repository name should be expressed as e.g.
and the RemoteSubdir argument would otherwise be irrelevant here. |
I've just made some changes that make it possible for me to download things from GitLab groups / sub-groups. I have a package in group / subgroup here: https://gitlab.com/renv-group/renv-subgroup/subpackage I can install that package and snapshot it with e.g. this script:
I see:
|
I had misunderstood the meaning of "subdir" :-) But I think you're right. Your output look just right with
To make things a bit more complicated, |
Are you sure you're using the latest version of If you need a custom host, you can set:
Will need to think about whether it makes sense to expose a |
Let me try installing it again just to be sure :-) Otherwise I just had an idea that I posted on |
I think I'm using the latest version. I install
I still get the same curl error |
BTW: Nice with the option :-) |
I don't know how I had managed to restart R/Rstudio/computer the wrong way, but after an R restart I suddenly don't get curl errors anymore. Now
|
You could try running That error would imply that someone ran Lines 594 to 601 in 2a39e9c
|
I've also added support for an explicit host, so that:
should do the right thing. |
I'll try to follow the stacktrace as you suggest as well as the new gitlab trick -- thanks! |
I believe this should overall be handled now on the |
When installing internal packages from GitLab the info seems to be stored correctly in
renv.lock
, but the package installation fails when runningrenv::restore()
.Looking at the source this is also noticed at https://github.com/rstudio/renv/blob/master/R/retrieve.R#L171
There is an open PR in the
remotes
repo to solve this issue: r-lib/remotes#308If you are interested, I'd be happy to make a PR that fixes
renv
untilremotes
is fixed.Edit: The reason I am running into problems is that my GitLab repo is located at
RemoteUsername / RemoteRepo / RemoteSubdir
. All of these are saved inrenv.lock
, butRemoteSubdir
is not used.The text was updated successfully, but these errors were encountered: