~/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/amd64Linux 5.4.0-70-generic #78-Ubuntu SMP Fri Mar 19 13:29:52 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Hi! I encountered an error:
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