Error in utils::download.file(url, path, method = download_method(), quiet = quiet, :
cannot open URL 'https://git.hostname.tld/username/reponame/repository/archive.tar.gz?ref=master&private_token=GITLAB_PAT'
GITLAB_PAT is set in scope "api" (read/write access to the API) and "read_repository" (Grants read-only access to repositories on private projects using Git-over-HTTP (not using the API).)
Long story short: Has anyone gotten install_gitlab to work with a private repo and can give me a hint what has gone wrong with my attempts above?
Update: I just tried with a private repo on gitlab.com and I get the same error.
Update2: The main issue seems to be that the repository is private, irrespective of whether the server is gitlab.com or a gitlab CE or EE server. I updated the text accordingly.
Yes but I usely use install_git using basic auth. I did before the gilab function was available.
I’ll try tomorrow at work again like you did to see if I can reproduce.
I want to build a gitlab package in a dockerfile, so I dont have the option to ask for user or password. Right now I have username and pwd hardcoded in the Dockerfile, as I was also not able to download the package using the GITLAB_PAT.
My repo is Internal though not private, but the error remains the same.
Is this an install_gitlab bug or where is the mistake?