Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #9508

Closed
Open
Created Jul 30, 2015 by Administrator@rootOwner

gitlab does not support to get sub-package by ``go get``

Created by: hvnsweeting

I tried this with gitlab.com, so that probably contains the newest stable version of gitlabhq:

$ go get -v gitlab.com/hvn_familug/pikachu/raichu
Fetching https://gitlab.com/hvn_familug/pikachu/raichu?go-get=1
Parsing meta tags from https://gitlab.com/hvn_familug/pikachu/raichu?go-get=1 (status code 200)
import "gitlab.com/hvn_familug/pikachu/raichu": parse https://gitlab.com/hvn_familug/pikachu/raichu?go-get=1: no go-import meta tags
package gitlab.com/hvn_familug/pikachu/raichu: unrecognized import path "gitlab.com/hvn_familug/pikachu/raichu"
$ go get -v gitlab.com/hvn_familug/pikachu
Fetching https://gitlab.com/hvn_familug/pikachu?go-get=1
Parsing meta tags from https://gitlab.com/hvn_familug/pikachu?go-get=1 (status code 200)
get "gitlab.com/hvn_familug/pikachu": found meta tag main.metaImport{Prefix:"gitlab.com/hvn_familug/pikachu", VCS:"git", RepoRoot:"https://gitlab.com/hvn_familug/pikachu.git"} at https://gitlab.com/hvn_familug/pikachu?go-get=1

On my gitlab 7.3 private server, it's the same.

When github, and golang.org work, they all returned correct RepoRoot:

$ go get -v github.com/astaxie/beego/config
github.com/astaxie/beego (download)

$ godep restore -v
...
 godep: get "golang.org/x/crypto/cast5": found meta tag vcs.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at https://golang.org/x/crypto/cast5$
go-get=1
godep: get "golang.org/x/crypto/cast5": verifying non-authoritative meta tag
godep: get "golang.org/x/crypto/openpgp": found meta tag vcs.metaImport{Prefix:"golang.org/x/crypto", VCS:"git", RepoRoot:"https://go.googlesource.com/crypto"} at https://golang.org/x/crypto/ope$
pgp?go-get=1

https://github.com/gitlabhq/gitlabhq/pull/5958 only support get the package if it's at root of the repo.

Assignee
Assign to
Time tracking