You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, as of remotes 2.4.0 that code results in the following error:
Error: Failed to install 'unknown package' from Git:
Line starting '<DOCTYPE html> ...' is malformed!
From the reading I've done my limited understanding is that somehow the request is getting sent to a GitLab login page, and thus the file it's retrieving is the HTML of that page. I confirmed this morning that the install worked for a user with devtools v2.3.2 and remotes v2.2.0, but it does not work for me on devtools v2.4.1 and remotes v2.4.0.
The text was updated successfully, but these errors were encountered:
This change introduced the issue. The problem is that remote_package_name.git2r_remote is trying to download the package DESCRIPTION file (to determine the package name), but the call to download in remote_package_name.git2r_remote doesn't get passed the credentials supplied by the user to install_git.
The result is that instead of downloading the package's DESCRIPTION file, you download GitLab's login page if the package repo isn't public.
rnorberg
added a commit
to rnorberg/remotes
that referenced
this issue
Jul 9, 2021
Related to r-lib#632 and r-lib#625. Now, when trying to download a package's `DESCRIPTION` file from a repo that requires authentication, some types of credentials (`git2r::cred_user_pass`, `git2r::cred_env`, and `git2r::cred_token`) are passed to the (internal) `download` function.
With remotes 2.2.0, the following lines worked to install a company R package I maintain from GitLab to local:
However, as of remotes 2.4.0 that code results in the following error:
From the reading I've done my limited understanding is that somehow the request is getting sent to a GitLab login page, and thus the file it's retrieving is the HTML of that page. I confirmed this morning that the install worked for a user with devtools v2.3.2 and remotes v2.2.0, but it does not work for me on devtools v2.4.1 and remotes v2.4.0.
The text was updated successfully, but these errors were encountered: