Skip to content

Tool versions update fails if SSH repository URL is configured

Overview

When a user configures the repositories.<name> repository URL with an SSH remote, update:tool-versions fails with an error:

From https://gitlab.com/gitlab-org/gitlab
 * branch                      master     -> FETCH_HEAD
   be6b3b147b2c..7301738305a3  master     -> origin/master
ℹ️  Found 4 services with repositories
bad URI(is not URI?): "git@gitlab.com:gitlab-org/gitlab/-/raw/master/.tool-versions"
$HOME/.local/share/mise/installs/ruby/3.3.8/lib/ruby/3.3.0/uri/rfc3986_parser.rb:130:in `split'
$HOME/.local/share/mise/installs/ruby/3.3.8/lib/ruby/3.3.0/uri/rfc3986_parser.rb:135:in `parse'
$HOME/.local/share/mise/installs/ruby/3.3.8/lib/ruby/3.3.0/uri/common.rb:187:in `parse'
$HOME/glab/gdk/lib/gdk/tool_versions_updater.rb:98:in `http_get'
$HOME/glab/gdk/lib/gdk/tool_versions_updater.rb:120:in `fetch_service_tool_versions'
$HOME/glab/gdk/lib/gdk/tool_versions_updater.rb:62:in `block (2 levels) in collect_tool_versions'

Impacted categories

The following categories relate to this issue: