[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: golang naming scheme (was: re Bug#819591: ITP: golang-github-peterbourgon-diskv)



On Thu, 31 Mar 2016 at 11:10:56 -0400, Holger Levsen wrote:
> As you might have noticed, golang packages seem to have an, aehm,
> interesting naming scheme, where they basically take the upstream URL
> and turn this into a package name.

If I understand correctly, the URL of a Go package is ABI. For instance in
<https://github.com/peterbourgon/diskv/blob/master/index.go>:

> import (
> 	"sync"
>
> 	"github.com/google/btree"                  <<---
> )

I'm not defending that design decision, but given that it exists,
having Debian package names mechanically derived from what you "import"
(or "use" or whatever the language's idiom is) seems like A Good Thing.
See also: the way we encode SONAMEs into C binary package names, and
the name you "import" or "use" into Python and Perl binary package names
("import dbus.mainloop.qt" -> python3-dbus.mainloop.qt,
"use Text::Markdown::Discount" -> libtext-markdown-discount-perl)

    S


Reply to: