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

Re: Using debian/vendor/ in Go packages?



On 4/3/25 2:07 PM, Jérémy Lal wrote:
It's as simple as declaring in d/watch and d/copyright and then uscan/ gbp import-orig.
Lacking a nicer way, I patched go.mod to append:

+replace github.com/prep/socketpair <http://github.com/prep/socketpair> => ./golang-github-prep-socketpair +replace github.com/jupp0r/go-priority-queue <http://github.com/jupp0r/ go-priority-queue> => ./golang-github-jupp0r-go-priority-queue

Does dh-golang allow that configuration without the need for a patch ?

You can create them as vendor in package directory. See https://salsa.debian.org/ruby-team/gitlab/-/blob/master/debian/rules?ref_type=heads#L22

I don't use uscan/watch, but manually maintain a single vendor tarball. If you want to use uscan/watch - you will need to recreate the vendor directory structure. May be patching go.mod is simpler?

Attachment: OpenPGP_0x8F53E0193B294B75.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


Reply to: