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 ms0.migadu.com with LMTPS id CCNjJZ87OWFQaAAAgWs5BA (envelope-from ) for ; Thu, 09 Sep 2021 00:39:27 +0200 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 8A8cIJ87OWGqRAAAB5/wlQ (envelope-from ) for ; Wed, 08 Sep 2021 22:39:27 +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 E21996889 for ; Thu, 9 Sep 2021 00:39:26 +0200 (CEST) Received: from localhost ([::1]:39610 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mO6E2-0007OT-08 for larch@yhetil.org; Wed, 08 Sep 2021 18:39:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58870) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mO6Dg-0007Ny-6j for guix-devel@gnu.org; Wed, 08 Sep 2021 18:39:04 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:41903) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mO6DW-0000E0-3D; Wed, 08 Sep 2021 18:39:00 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 3028D5C00E6; Wed, 8 Sep 2021 18:38:49 -0400 (EDT) Received: from imap22 ([10.202.2.72]) by compute4.internal (MEProxy); Wed, 08 Sep 2021 18:38:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=mime-version:message-id:in-reply-to:references:date:from:to :cc:subject:content-type:content-transfer-encoding; s=mesmtp; bh=CymH4Mw0zCMrClqCbEBwwt0kaeZ/mehOJ3joV0ZUpXs=; b=ln2yLWG+bbZQ A9Jaa78oz0BB5590Kfzx2sU8+BsJE6D5D+jwxXD9LiopknzS8PcBPDV9Xy5jwZ7/ fmsEV+HGGfRUUR+yq6HvVVNJGyeXOlSdUhdFLHinWZ152tRUYfn6UBtH0aieeu8p u7ALuNDdCYjduSce+N9uignaXCX9ODk= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=fm3; bh=CymH4Mw0zCMrClqCbEBwwt0kaeZ/mehOJ3joV0ZUp Xs=; b=qz03DgephfN5i4oDH+5sM9z0DSFdJDIcjeQ3LC1rkje/GGqgY319lW4Xu ap2diLZgaUp3NCJtI0V3nMPoldLLglTCxbnMEUNkB3tXe56ssoB6Ic3n+UtzZpfo 2ZUnmVcokLHCJrEsSqbJ/gdEWoHM5xDgFn/xTISMQ86FkHWuZsLfHBLMYWWWtYNs rDtuWGCH3y4ItiSpHAz1+tdxjnmYWcHN21mupQGxUjpJQrpyXc1Htfp2oXof8yit 9r5fp+SjB31bw+hOEfCrQyGrnO/89Ca1ONZUnquA/E/h4wp644Q9EYHxOeg3ZkTV r69JzqQEvpiozTDfzyfOMRsG+7h1A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudefkedgudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgfgsehtqhertderreejnecuhfhrohhmpedfnfgv ohcuhfgrmhhulhgrrhhifdcuoehlvghosehfrghmuhhlrghrihdrnhgrmhgvqeenucggtf frrghtthgvrhhnpeeuieetteduheejleegheejueeikeefffevfffhiefhkeevleevheev hfdufeeijeenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhgvohesfhgrmhhulhgrrhhirdhn rghmvg X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 2C41562C0064; Wed, 8 Sep 2021 18:38:48 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-1229-g7ca81dfce5-fm-20210908.005-g7ca81dfc Mime-Version: 1.0 Message-Id: <44d7a7d0-3676-4c9f-9654-3e8863f24226@www.fastmail.com> In-Reply-To: References: <8735qezrhl.fsf@gnu.org> <8635qp1j6k.fsf@mgsn.dev> Date: Wed, 08 Sep 2021 18:38:27 -0400 From: "Leo Famulari" To: "Jonathan McHugh" , =?UTF-8?Q?Ludovic_Court=C3=A8s?= , "Sarah Morgensen" Subject: Re: Can we find a better idiom for unversioned packages? Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=66.111.4.28; envelope-from=leo@famulari.name; helo=out4-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, 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-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: , Cc: "Christopher Baines via Development of GNU Guix and the GNU System distribution." Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631140767; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=CymH4Mw0zCMrClqCbEBwwt0kaeZ/mehOJ3joV0ZUpXs=; b=UHBwgiopexx5APIZ4dK9QcJHN7VWbXhLoiN3q5UsZ+M+mIHKWxNWhEO2DyLvgZm5sKI6qF t6SWfTJa5UBfwcIvdZ9mcOg8HROqqETpM5StA4iauDZeDHlqc6fIf6Kp2GUcO37RMz+tv3 AouC7zuMWbdiSBZsUIfts/qKN5m+ohvN9+7pPJjCPZCsvDbvcR0L7TfAzdVqe454s8EvIH 6ATCQli6USuVK+9JkO0HlCqfkfC+l+an9HfRurFfnXwII8HgWs/ShYO0mUVlvOqFSwXifW jaKV2C5GfEWod9VTUJQw3UfPrYD9L1dw5hqCeDu22f1cGdUfh4T62d+V7666pw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631140767; a=rsa-sha256; cv=none; b=AvIhcOSg1MLQHjRaT3x0MrI0/JRSO4FsgO+XFPTkUD6WJaPXB9lL0MiiuMCbMnY3zEvz+h qBJ4V/XrwvUe2GUonPq/0s7s9Axi+RjdYZczAO24H2Es2fzdjsCd6kgH4yAGNh6mCd4Sz4 GsHGloFRX54HKVJ3h9oX0ucMvKmqOQJ1PtS7U3prnZqMojihqWPqdJjEbREsHKVlLUJPfl opwIqBCcocLqmSiMK1SM1VGsvC+asqb8oRZFlkdwzn9WcDFKh+vdvvB78yU+q7031iWgKf 5TSLwtt/+9jZdxdRBRxGlOxvRK1VF56nn+IyKSR2rKcmDt4JbxbuQBrDCzE75Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=famulari.name header.s=mesmtp header.b=ln2yLWG+; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=qz03Dgep; 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-Spam-Score: -0.60 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=famulari.name header.s=mesmtp header.b=ln2yLWG+; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=qz03Dgep; dmarc=none; 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: E21996889 X-Spam-Score: -0.60 X-Migadu-Scanner: scn0.migadu.com X-TUID: s70NG1cGLGED I think Ludo meant difftastic: https://github.com/Wilfred/difftastic On Wed, Sep 8, 2021, at 18:21, Jonathan McHugh wrote: > Hi Ludo, >=20 > Just checking: >=20 > Is Diffstatic a real tool? It wasnt quite clear to me (and I fancy=20 > finding a new diff tool). >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Jonathan McHugh > indieterminacy@libre.brussels >=20 > September 8, 2021 11:31 PM, "Ludovic Court=C3=A8s" wrot= e: >=20 > > Hello! > >=20 > > Sarah Morgensen skribis: > >=20 > >> Currently, there are about 1500 packages defined like this: > >>=20 > >> (define-public sbcl-feeder > >> (let ((commit "b05f517d7729564575cc809e086c262646a94d34") > >> (revision "1")) > >> (package > >> [...]))) > >>=20 > >> I feel like there are some issues with this idiom (in no particular > >> order): > >=20 > > I=E2=80=99m late to the party but I=E2=80=99ll complement previous a= nswers. :-) > >=20 > >> 1. When converting between this idiom and regularly versioned packa= ges, > >> the git diff shows the whole package changing because of the indent= ation > >> change. > >=20 > > One can use =E2=80=98git diff -w=E2=80=99 to work around that (or th= e newfangled > > Diffstatic tool.) > >=20 > >> 3. Packages inheriting from it lose the definitions. For actual fie= lds, > >> we have e.g. `(package-version this-package)`, but we have no equiv= alent > >> for these. > >=20 > > Right, these pieces of information are not =E2=80=9Cfirst-class=E2=80= =9D, except in the > > =E2=80=98git-reference=E2=80=99 record (or similar) for the commit I= D. Do you have > > examples in mind where it=E2=80=99s insufficient? > >=20 > > [...] > >=20 > >> 5. The closest thing we have to a standardized way of generating > >> versions for these packages is `(version (git-version "0.0.0" revis= ion > >> commit))`. We can do better than that boilerplate. > >=20 > > I can sympathize with the feeling, but I=E2=80=99m not sure what to = do. A > > =E2=80=98vcs-version=E2=80=99 record as Maxime proposes seems a bit = overkill to me (and > > it would probably have an impact on performance, build times, and > > whatnot.) > >=20 > >> 6. Not a direct complaint, but I feel like the overall package inte= rface > >> was designed before straight-from-vcs unversioned packages were so > >> common, and so this idiom developed organically to work around that. > >=20 > > Sure, though =E2=80=9Cstraight-from-vcs=E2=80=9D and =E2=80=9Cunvers= ioned=E2=80=9D are two different > > things: I=E2=80=99m fine with the former, but the latter equates to = upstream > > telling its users =E2=80=9Cgo find a revision that works for you=E2=80= =9D. I think > > releases still make sense for any non-trivial piece of software. > >=20 > > As noted in the manual (info "(guix) Version Numbers"), packages bui= lt > > from arbitrary commits were supposed to be exceptional. Perhaps the > > reason we=E2=80=99re having this conversation now is that developmen= t practices > > are evolving towards what looks like chaos. :-) > >=20 > > Thanks, > > Ludo=E2=80=99. >=20 >=20