Describe the bug
When tried to create a gitlab client for an enterprise instance and then get a repo, i have an error saying that the gitlab
client is not able to consume my repo endpoint.
The issue seems to be an error on how the gitlab client uses `domain (reported here and how it handles base URL.
To Reproduce
scenario 1
- use the following gist
- configure your gitlab enterprise endpoint and repo
- execute the test and you will an error like
the client doesn't support handling requests for this domain
scenario 2
- use the following gist which is similar to scenario 1 but commenting
SupportedDomain call
- configure your gitlab enterprise endpoint and repo
- execute the test and you will an error like
unsupported protocol scheme ""
In this example, i could see how the underlying client baseurl is not properly created as shown in the image below

Expected behavior
I can use gitlab client for getting repos from gitlab enterprise instances
Additional context
- Go version: go version go1.19.1 darwin/arm64
- Git provider: gitlab