On Thu, Jun 14, 2018 at 9:49 PM, Tong Sun <pkgoyq....@neverbox.com> wrote: > >> > Overall, I know it is not hard for all your experienced go maintainers,
It was very tough for me starting out with Go packaging especially with git-buildpackage (gbp), it was almost driving me crazy, and I am still struggling from time to time. >> > but some might have forgot how hard it was for the newcomers to pick >> > up. Well, I must stop complaining, and give up my "look before leap" >> > motto, and start cracking... Of course I didn't forget, but since I was your DM Advocate, I thought I should be the one to lecture you. ;-) (I bet you are really starting to regret asking me to be your advocate...) Unfortunately for newcomers like you, the relevant documentations are all over the place, some on the Go Team home page (which is currently incomplete), some on the Debian Wiki, some elsewhere, and I am still taking notes on my personal Wiki as I go. Your experience has inspired me to do some work with our Debian Go Team website. Anyhow, I am really glad you have now done your homework, and I'll be happy to answer your questions like other Debian Go Team members are. >> Hope this helps a bit. Feel free to share notes: we could use this as a >> way to improve our documentation, at least. > > > Thank you Clément for your kind help. > > After some extensive reading, I'm starting to build a very small package, > https://alioth-lists.debian.net/pipermail/pkg-go-maintainers/Week-of-Mon-20180611/021798.html > to get ready to pack my github.com/go-easygen/easygen. > > Once thing I want to confirm first of all, is the package and git name. > > - dh-make-golang calls my package golang-github-danverbraganza-varcaser, but > since it is only a lib, should I call it > golang-github-danverbraganza-varcaser-dev instead? Answer: Source package name: golang-github-danverbraganza-varcaser Binary package name: golang-github-danverbraganza-varcaser-dev (I know, no compiled code is included in the library -dev package, but anything that ends up as a .deb is called a "binary package". I am sure you knew that already since you have been doing general Debian packaging for a long time.) Comment / "Lecture": Hmm... maybe you didn't *quite* do your homework after all... :-/ 1. Didn't you read https://people.debian.org/~stapelberg/2015/07/27/dh-make-golang.html, i.e., the first link under Documentation on the https://go-team.pages.debian.net home page? 2. Don't you think someone would have fixed dh-make-golang, one of the most used tools for the Debian Go Team, a long time ago, if it were to make a silly mistake like that? 你竟然未有证据,就质疑 dh-make-golang 搞错!?你有没有搞错!? 3. With hundreds of Go libraries that are already packaged for Debian, didn't you try to look at the previous WNPP ITP requests, say, by googling: ITP golang, and you'd have seen that no one appends the -dev to the subject of the ITP message. 这些基本求证的动作,不需要教了吧?下次请做足功课! > - if so, should the git name have that `-dev` as well? The name of the Git repository lists the source package name, hence, no -dev. You can see how other packages do it by browsing through the list at https://salsa.debian.org/go-team/packages/, though a reminder that some old packages were created before the current naming convention was set, and thus have really short names like "golang-blackfriday" rather than "golang-github-russross-blackfriday". > I put `-dev` into my ITP message, but did not add `-dev` to git name. Was > that correct? Not adding "-dev" to the Git repository path: Correct. Good for you! Putting "-dev" as the subject of the ITP message: Incorrect. The good news is: You can fix the bug title of https://bugs.debian.org/901583 Start by reading https://www.debian.org/Bugs/server-control . I'll leave that as an exercise for you. > Now, When I try to do `gbp push`, I get `You are not allowed to push code to > this project` error... > > I check that the repository exists (I was able to create it beforehand) at > https://salsa.debian.org/go-team/packages/golang-github-danverbraganza-varcaser > > So now it seems to me that my salsa account (suntong-guest) need to be added > to go-team, right? thx. Well, normally, someone wanting to join the Debian Go Packaging Team would visit https://salsa.debian.org/go-team and click on the [Request Access] button right in the middle, and someone would have approved your request within a day. Nevertheless, to avoid going back and forth and wasting time, I went ahead and added you manually. Welcome to the team! Cheers, Anthony _______________________________________________ Pkg-go-maintainers mailing list Pkg-go-maintainers@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-go-maintainers