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

Unable to dep init on GitLab project #1877

Closed
alethenorio opened this issue May 28, 2018 · 3 comments
Closed

Unable to dep init on GitLab project #1877

alethenorio opened this issue May 28, 2018 · 3 comments

Comments

@alethenorio
Copy link

What version of dep are you using (dep version)?

v0.4.1

What dep command did you run?

dep init

What did you expect to see?

Init a new dep project

What did you see instead?

init failed: unable to solve the dependency graph: Solving failure: remote repository at https://gitlab.com/myproject/mysubproject.git does not exist, or is inaccessible: GitLab: The project you were looking for could not be found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
: exit status 128

Details

I am trying to run dep init on a GitLab private project.

There have a been a few issues opened with GitLab before (#1502) however I couldn't find anything that I am doing wrong as per those issues.

The URL of the repo would is something like https://gitlab.com/myproject/mysubproject/myrepo.git and when I go go get gitlab.com/myproject/mysubproject/myrepo.git it works (I am redirecting git to use ssh as well) however with dep I get the issue above.

Given that go get works I had an expectation that dep should probably work too. Is there any way around this issue? I am a little lost on how to proceed.

@ghost
Copy link

ghost commented Jul 2, 2018

go get will try SSH whereas you specify HTTPS here. Dep doesn't know this might be a private repo so it attempts to get it without any auth and fails.

@nghialt
Copy link

nghialt commented Sep 17, 2018

hi, any update on this issue?

@mvdan
Copy link
Member

mvdan commented Sep 4, 2020

Dep was officially deprecated earlier this year, and the proposal to archive this repository was accepted. As such, I'm closing outstanding issues before archiving the repository. For any further comments, please use the proposal thread on the Go issue tracker. Thanks!

@mvdan mvdan closed this as completed Sep 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants