From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id njTvKAl8FGCgCAAA0tVLHw (envelope-from ) for ; Fri, 29 Jan 2021 21:20:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id wB9WJAl8FGDNKwAAB5/wlQ (envelope-from ) for ; Fri, 29 Jan 2021 21:20:09 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 24C519401C0 for ; Fri, 29 Jan 2021 21:20:07 +0000 (UTC) Received: from localhost ([::1]:33062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5bBW-0004Oq-2C for larch@yhetil.org; Fri, 29 Jan 2021 16:20:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58354) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5aqO-00025z-RR for guix-devel@gnu.org; Fri, 29 Jan 2021 15:58:17 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:55029) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5aqK-0003wl-F9 for guix-devel@gnu.org; Fri, 29 Jan 2021 15:58:16 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 9B124EB7 for ; Fri, 29 Jan 2021 15:58:08 -0500 (EST) Received: from imap35 ([10.202.2.85]) by compute1.internal (MEProxy); Fri, 29 Jan 2021 15:58:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm2; bh=njthtY1q2AfqWYIzYpY3CYG6DOPqkcO Twr16johjdjk=; b=DvzLWX/Q73zO6AbckaxkoFu6vyrKI2QFSG9JQyLo8JWK4S4 snJKCcA+xmS+TDpgpqNaHysWGiv/SMvCU1xbZIbqeCk0uOqMhlVRzkTly7U97w7h SEZL1Bs/gdZoW4/nKn9AVXmCDFAsNCchKzZpQ6c+mJ1zpSTSfikZY9kX6BvumZm3 CzPnH/1qM4gwmzDO2wEOLDTBgtpna4qlSeXOyhFJkXL+P4Gpe1EDEGsjSWMjF0Kb Zwo6QO43Pwg/s1cvpUoTsW6gGp6IG0+WoCvP5yrU3OxWBIbAFhqzGuiOwoGZMAKw bR3ENCntIAnWh6Ll/JVK76jbP+/dO0WHX3mXOmA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=njthtY 1q2AfqWYIzYpY3CYG6DOPqkcOTwr16johjdjk=; b=fU4V5ZN9p1Wl6NW68VtfOI GMWXNb0b8CXXFtXN6/DiJjhpdrqTnOXghHOD06Z0MWx4jZcH/VHnsn6PIDNIMfmc aNrV8b8y30dq7J/B790V3l0SXZf1rDp4aXLyIsnOYy6hjkgdyQ5wvKgWLjd2B/5/ 1HD3n4hLpvhGnWOLYT20cp4YylzjapBWprURm9pxcj0NlHQkgcSXPS/CDXPu1tAy 0DFTzSnhg3EK3ZPbZgqLOCniXrESe/isJ5aV0uCwPh4NzFIW3gadg9Vyvfr4Gih9 pGLlMVjKNMEy5botfEbsqZY7i8uFrwNqcb5J1TqBVECGWt+RlBSAxAzj6+YK8F1Q == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedvgddugeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesrgdtreerreerjeenucfhrhhomhepfdfglhgr ihhsucfrlhgrhigvrhdfuceovghlrghishesfhgrshhtmhgrihhlrdgtohhmqeenucggtf frrghtthgvrhhnpeelgfekieeltdevteejgfevffdtvdeugedtfedthfegieduieffheeg gedthfegteenucffohhmrghinhepghholhgrnhhgrdhorhhgpdhsrhdrhhhtpdhlihgsrh gvphhlrghnvghtrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomhepvghlrghishesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 09B3F15A005E; Fri, 29 Jan 2021 15:58:07 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-84-gfc141fe8b8-fm-20210125.001-gfc141fe8 Mime-Version: 1.0 Message-Id: <1fa5b87c-465d-4886-aace-a96c2585a865@www.fastmail.com> In-Reply-To: <203dfc3a-af6a-7ca8-6d3f-28ea609c779f@hyperbola.info> References: <87h7nrud2a.fsf@timmydouglas.com> <4bdbc469-ad45-4739-b001-739ad3a60adc@www.fastmail.com> <87a6thtyvm.fsf@timmydouglas.com> <87bldw0ztb.fsf@timmydouglas.com> <20210125204534.ovhvt7rzj7tbqrnt@fjo-extia-HPdeb.example.avalenn.eu> <87wnvymoxe.fsf@gmail.com> <87mtwtkq0l.fsf@gnu.org> <203dfc3a-af6a-7ca8-6d3f-28ea609c779f@hyperbola.info> Date: Fri, 29 Jan 2021 20:57:46 +0000 From: "Elais Player" To: "adfeno--- via Development of GNU Guix and the GNU System distribution." Subject: Re: packaging a golang package Content-Type: multipart/alternative; boundary=43ae1033cc75463e8027f4241f871b31 Received-SPF: pass client-ip=64.147.123.25; envelope-from=elais@fastmail.com; helo=wout2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 29 Jan 2021 16:19:56 -0500 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.54 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=fastmail.com header.s=fm2 header.b="DvzLWX/Q"; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=fU4V5ZN9; dmarc=pass (policy=none) header.from=fastmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 24C519401C0 X-Spam-Score: -0.54 X-Migadu-Scanner: scn0.migadu.com X-TUID: Y7FN3TF1qHck --43ae1033cc75463e8027f4241f871b31 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Hey I just want to throw out there that I have a very WIP go module impo= rter[1] sitting on my channel. It uses the proxy.golang.org[2] api to fe= tch the module's dependencies and source. The single module importer wor= ks for the most part but I need to fix it so that the recursive importer= doesn't fail when it tries to fetch a dependency in a project's go.mod = file that isn't proxied. There are a few problems that should be looked at for my importer. 1.) it does not include metadata or licensing information, so after impo= rting this way a prudent packager will have to go through and add this i= nformation for everything that was pulled down.=20 2.) I don't think I'm doing a good job of filtering out similar versions= of packages, i tried to follow the examples in the cargo importer but I= 'm not quite sure what all is going on in there.=20 3.) It uses a call to `guix environment --ad-hoc go -- go mod edit -json= ` to parse module dependencies from the go.mod file, maybe this can be d= one in a more idiomatic way? I think its a good start if anyone would like to help get it over the hu= mp. [1] https://git.sr.ht/~elais/orange/tree/master/item/guix/import/go.scm [2] https://proxy.golang.org On Thu, Jan 28, 2021, at 21:10, adfeno--- via Development of GNU Guix an= d the GNU System distribution. wrote: > Em 28/01/2021 13:03, Ludovic Court=C3=A8s escreveu: > > IMO, =E2=80=98guix import=E2=80=99 does not =E2=80=9Csteer users tow= ards obtaining any nonfree > > information=E2=80=9D any more than wget does. It=E2=80=99s a tool f= or packagers that > > returns a package definition or template thereof, and it=E2=80=99s u= p to the > > packager to decide what to do with it. >=20 > I do agree with you, sorry if for some reason it sounded otherwise. My= intention is not to censor the user on that matter. Let me make it clea= r what I meant in the previous message: >=20 > From the bug report I referenced, one can see that what I find strange= is that the cargo provided by Guix (installable through `guix package -= i rust:cargo') has cargo's default repository enabled. The bug report re= ferenced has some ideas to try to solve this (although I didn't make ext= ensive test to see if they are all possible and doable). >=20 >=20 > --=20 > * Ativista do software livre > * https://libreplanet.org/wiki/User:Adfeno > * Membro dos grupos avaliadores de > * Software (Free Software Directory) > * Distribui=C3=A7=C3=B5es de sistemas (FreedSoftware) > * Sites (Free JavaScript Action Team) > * N=C3=A3o sou advogado e n=C3=A3o fomento os n=C3=A3o livres > * Sempre veja o spam/lixo eletr=C3=B4nico do teu e-mail > * Ou coloque todos os recebidos na caixa de entrada > * Sempre assino e-mails com OpenPGP > * Chave p=C3=BAblica: vide endere=C3=A7o anterior > * Qualquer outro pode ser fraude > * Se n=C3=A3o tens OpenPGP, ignore o anexo "signature.asc" > * Ao enviar anexos > * Docs., planilhas e apresenta=C3=A7=C3=B5es: use OpenDocument > * Outros tipos: vide endere=C3=A7o anterior > * Use protocolos de comunica=C3=A7=C3=A3o federadas > * Vide endere=C3=A7o anterior > * Mensagens secretas somente via > * XMPP com OMEMO > * E-mail criptografado e assinado com OpenPGP >=20 >=20 >=20 > *Attachments:* > * signature.asc --43ae1033cc75463e8027f4241f871b31 Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hey I just want= to throw out there that I have a very WIP go module importer[1] sitting= on my channel. It uses the proxy.golang.org[2] api to fetch the module'= s dependencies and source. The single module importer works for the most= part but I need to fix it so that the recursive importer doesn't fail w= hen it tries to fetch a dependency in a project's go.mod file that isn't= proxied.

There are a few problems that sho= uld be looked at for my importer.

1.) it do= es not include metadata or licensing information, so after importing thi= s way a prudent packager will have to go through and add this informatio= n for everything that was pulled down.

2.)= I don't think I'm doing a good job of filtering out similar versions of= packages, i tried to follow the examples in the cargo importer but I'm = not quite sure what all is going on in there.

<= div>3.) It uses a call to `guix environment --ad-hoc go -- go mod edit -= json` to parse module dependencies from the go.mod file, maybe this can = be done in a more idiomatic way?

I think it= s a good start if anyone would like to help get it over the hump.


On Thu, Jan 28, 2021, at 21:10, adfeno--- vi= a Development of GNU Guix and the GNU System distribution. wrote:
Em 28/01/2021 13:= 03, Ludovic Court=C3=A8s escreveu:
> IMO, =E2=80=98guix= import=E2=80=99 does not =E2=80=9Csteer users towards obtaining any non= free
> information=E2=80=9D any more than wget does.&nb= sp; It=E2=80=99s a tool for packagers that
> returns a = package definition or template thereof, and it=E2=80=99s up to the
> packager to decide what to do with it.

<= /div>
I do agree with you, sorry if for some reason it sounded other= wise. My intention is not to censor the user on that matter. Let me make= it clear what I meant in the previous message:

=
From the bug report I referenced, one can see that what I find stra= nge is that the cargo provided by Guix (installable through `guix packag= e -i rust:cargo') has cargo's default repository enabled. The bug report= referenced has some ideas to try to solve this (although I didn't make = extensive test to see if they are all possible and doable).


-- 
* Ativista do sof= tware livre
* Membro dos grupos avaliadores de
* Software (Free Softw= are Directory)
* Distribui=C3=A7=C3=B5es de sistemas (Free= dSoftware)
* Sites (Free JavaScript Action Team)
=
* N=C3=A3o sou advogado e n=C3=A3o fomento os n=C3=A3o livres
* Sempre veja o spam/lixo eletr=C3=B4nico do teu e-mail
* Ou coloque todos os recebidos na caixa de entrada
* Sempre assino e-mails com OpenPGP
* Chave p=C3=BAblica:= vide endere=C3=A7o anterior
* Qualquer outro pode ser fra= ude
* Se n=C3=A3o tens OpenPGP, ignore o anexo "signature.= asc"
* Ao enviar anexos
* Docs., planilhas e= apresenta=C3=A7=C3=B5es: use OpenDocument
* Outros tipos:= vide endere=C3=A7o anterior
* Use protocolos de comunica=C3= =A7=C3=A3o federadas
* Vide endere=C3=A7o anterior
* Mensagens secretas somente via
* XMPP com OMEMO
* E-mail criptografado e assinado com OpenPGP



Attachments:
  • signature.asc

--43ae1033cc75463e8027f4241f871b31--