Re: What's the best way of packaging golang packages?

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



On 2017-03-08 17:13, Iru Cai via arch-general wrote:
> Hi,
> 
> I'm not familiar with go, but I'm trying to use some go programs, caddy for
> example. I read the PKGBUILD of it. It first use `go get' to get the
> dependencies and then do the `go build'.

Yes, that's a bad practice, and the fact that devtools allow network
access during build doesn't help.

How Debian and Fedora handles it (and we should too) is packaging source
code that is later being used by the compiler. Semi-example of that can
be found in go-tools[1] package, except golang.org/x/net should be
effectively a standalone package and a make dependency.

The other way is asking upstream to vendor their dependencies in git
repository so we don't need to handle it at all.

Bartłomiej

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux