Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to import module. Exit status 128 #43

Open
amelkikh opened this issue Mar 24, 2021 · 0 comments
Open

Fail to import module. Exit status 128 #43

amelkikh opened this issue Mar 24, 2021 · 0 comments

Comments

@amelkikh
Copy link

amelkikh commented Mar 24, 2021

Hi!
I encountered an error:

~/work/my_project$ godepgraph -novendor -s -p github.com,google.golang.org,gopkg.in {gitlab_repo/project/subproject/package_name}

2021/03/25 00:13:56 failed to import {gitlab_repo/project/subproject/package_name} (imported at level 1 by ):
module {gitlab_repo/project/subproject}: git ls-remote -q origin in /home/user/go/pkg/mod/cache/vcs/{COMMIT_HASH_HERE}: exit status 128:
remote: 
remote: ========================================================================
remote: 
remote: The project you were looking for could not be found.
remote: 
remote: ========================================================================
remote: 
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists

Environment:
go version go1.15.7 linux/amd64
Linux 5.4.0-70-generic #78-Ubuntu SMP Fri Mar 19 13:29:52 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Package go.mod contains header
module gitlab_repo/project/subproject/package_name

I assume that this is due to gitlab has subprojects and thus incompatible path to module.
How to resolve such behavior?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant