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

Add support for GitLab #150

Open
etanot opened this issue Dec 29, 2020 · 2 comments
Open

Add support for GitLab #150

etanot opened this issue Dec 29, 2020 · 2 comments
Assignees
Milestone

Comments

@etanot
Copy link

etanot commented Dec 29, 2020

Type: Feature request

Description

When I was trying to pack Gitlab's labkit library, I get following warning messages:

2020/12/28 16:15:45 Could not determine description for "gitlab.com/gitlab-org/labkit": "gitlab.com/gitlab-org/labkit" is not on GitHub
2020/12/28 16:15:46 Could not determine long description for "gitlab.com/gitlab-org/labkit": "gitlab.com/gitlab-org/labkit" is not on GitHub
2020/12/28 16:15:47 Could not determine license for "gitlab.com/gitlab-org/labkit": "gitlab.com/gitlab-org/labkit" is not on GitHub
2020/12/28 16:15:47 Could not determine copyright for "gitlab.com/gitlab-org/labkit": "gitlab.com/gitlab-org/labkit" is not on GitHub
2020/12/28 16:15:49 debian/watch: Unable to resolve gitlab.com/gitlab-org/labkit to github.com, skipping
2020/12/28 16:15:49 debian/upstream/metadata: Unable to resolve gitlab.com/gitlab-org/labkit to github.com, skipping
2020/12/28 16:15:50 Could not determine license for "gitlab.com/gitlab-org/labkit": "gitlab.com/gitlab-org/labkit" is not on GitHub
2020/12/28 16:15:50 Could not determine author for "gitlab.com/gitlab-org/labkit": "gitlab.com/gitlab-org/labkit" is not on GitHub
2020/12/28 16:15:51 Could not determine description for "gitlab.com/gitlab-org/labkit": "gitlab.com/gitlab-org/labkit" is not on GitHub
2020/12/28 16:15:52 Could not determine long description for "gitlab.com/gitlab-org/labkit": "gitlab.com/gitlab-org/labkit" is not on GitHub
2020/12/28 16:15:52 Done!

It would be nice, if dh-make-golang also has support for Gitlab, just like it has for Github.

@anthonyfok anthonyfok added this to the v0.7.0 milestone Jan 5, 2022
@anthonyfok anthonyfok self-assigned this Jan 5, 2022
@anthonyfok
Copy link
Member

Something like this seems to work with golang-github-xanzy-go-gitlab-dev (0.22.2-1) (though outdated):

var gitLab *gitlab.Client

func main() {
    gitLab = gitlab.NewClient(nil, "")
    gitLab.SetBaseURL("https://salsa.debian.org/api/v4")
    opt := &gitlab.ListProjectsOptions{Search: gitlab.String("golang-golang-x-sys")}
    projects, _, err := gitLab.Projects.ListProjects(opt)
    if err == nil {
        fmt.Println(projects)
    }
}

Worth experimenting bit by bit.

@anthonyfok
Copy link
Member

Sample debian/watch file:

version=4
opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%@PACKAGE@-$1.tar.gz%,\
      uversionmangle=s/(\d)[_\.\-\+]?(RC|rc|pre|dev|beta|alpha)[.]?(\d*)$/$1~$2$3/" \
  https://salsa.debian.org/mdosch/xmppsrv/-/tags \
  archive/v?@ANY_VERSION@/xmppsrv-v?\d\S*\.tar\.gz debian

@anthonyfok anthonyfok changed the title Add support for Gitlab Add support for GitLab Jun 22, 2022
@anthonyfok anthonyfok modified the milestones: v0.7.0, v0.8.0 Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants