This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Description
How to install dependency from the private repository with a self-signed certificate? The gitlab isn't available by http, https is self-signed, and we can't change it or its settings - it belongs to another company, we just work in this repo temporarily.
What version of dep are you using (dep version)?
dep:
version : v0.4.1
build date : 2018-01-27
git hash : 37d9ea0
go version : go1.9.3
go compiler : gc
platform : darwin/amd64
What dep command did you run?
dep ensure -v -add gitlab.example.com:example/example
What did you expect to see?
Installing my dependency.
What did you see instead?
The error:
Fetching sources...
(1/1) gitlab.example.com:example/example
Failed to add the dependencies:
✗ could not infer project root from dependency path: gitlab.example.com: unable to deduce repository and source type or "gitlab.example.com": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://gitlab.example.com?go-get=1": Get https://gitlab.example.com:443/?go-get=1: x509: certificate signed by unknown authority
adding dependencies failed