[pkg-go] golang naming scheme (was: re Bug#819591: ITP: golang-github-peterbourgon-diskv)

Paul Tagliamonte paultag at debian.org
Thu Mar 31 15:40:33 UTC 2016


Also, I take issue with calling this "lazyness".

To imply the golang team hasn't put thought into a large section of the
archive is not very nice.

Thanks,
  Paul


On Thu, Mar 31, 2016 at 11:34 AM, Paul R. Tagliamonte <paultag at gmail.com>
wrote:

> That's correct.
>
> This is no different than saying the Python importable name is the package
> name. And why we see stuff like:
>
> python-foo.bar, since you import foo.bar.
>
> You import that URL. The package name is just the import name. No
> different than Python.
>
> Cheers,
>   Paul
>
> On Thu, Mar 31, 2016 at 11:28 AM, Simon McVittie <smcv at debian.org> wrote:
>
>> 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
>>
>>
>
>
> --
> :wq
>
> --
> :wq
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-go-maintainers/attachments/20160331/131bdc20/attachment-0001.html>


More information about the Pkg-go-maintainers mailing list