Skip to content

install_gitlab returns error while install_git works #839

@kweinert

Description

@kweinert

Hello,
thanks for the great package! I had some problems with install_gitlab on a self-hosted gitlab Community edition.

Initially, I tried:

pat <- "glpat-very.secret" # Project Access Token
remotes::install_gitlab("prj/myrepo", host="https://gitlab.myhost.com", auth_token=pat)

which fails with error message:

Fehler: Failed to install 'unknown package' from GitLab:
  kann URL 'https://gitlab.prognos.com/api/v4/projects/prj%2Fmyrepo/repository/files/DESCRIPTION/raw?ref=HEAD' nicht öffnen

It also fails when I provide the Token via environment variable GITLAB_PAT.

I finally got it working with

git_url <- "https://git:", pat, "@gitlab.myhost.com/prj/myrepo.git" # note the git prefix, does not work without it
remotes::install_git(git_url)

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