From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 2CUfH25/bWT7/wAASxT56A (envelope-from ) for ; Wed, 24 May 2023 05:07:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GOcEH25/bWQUWQAA9RJhRA (envelope-from ) for ; Wed, 24 May 2023 05:07:26 +0200 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 1366F39634 for ; Wed, 24 May 2023 05:07:26 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1epg-0004rc-Qn; Tue, 23 May 2023 23:06:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q1epe-0004rG-Lk for guix-devel@gnu.org; Tue, 23 May 2023 23:06:34 -0400 Received: from mail-40131.protonmail.ch ([185.70.40.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q1epc-0007Y9-NH for guix-devel@gnu.org; Tue, 23 May 2023 23:06:34 -0400 Date: Wed, 24 May 2023 03:06:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1684897588; x=1685156788; bh=TRXLXyKBHYQoDBIcys7YYtXJDQimgqoXLUNwXakKCRs=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=GjTk97xV4VHWpT/FzJfUMi5R02TeBmISuO1oai/vbS9MKo+kRYmcuTOmIH9Uqkco9 zAJ6D6EjomxVuUWLhxs5ungyuKRBhSjNTglv86/L2kgpUxFrWDQa+/C1wSmGzUNrtE 1yA7xLoRvBSdP21MabCOBnxxWKiH1QosG+hbYqG8AD/90+GSo1tlrLS2fpUsCm032U KMxsF9WGg5esZqU3IjHa0gSci0VKY/rwjGmQsqM8hoD5QIwWJ8lcAWVwdmj5CyiU22 DY26atKkMPB6TQ7tGHaz4xV9k0s3vmNB/Lnat5Ps4JdlMKTVJGrFXX8GfmGwWX9MLT iAqOa9HBWtr6A== To: jgart From: Ryan Prior Cc: Andreas Enge , Simon Tournier , guix-devel@gnu.org Subject: Re: Transformations Shell Syntax Message-ID: In-Reply-To: <0de0483c74dca1138df849b8fd2b1193@dismail.de> References: <86a5xvv12u.fsf@gmail.com> <95989e12b8be444d908a4401c1fb55d2@dismail.de> <412fbcf010594abbac4c653536022455@dismail.de> <0de0483c74dca1138df849b8fd2b1193@dismail.de> Feedback-ID: 7396961:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.131; envelope-from=rprior@protonmail.com; helo=mail-40131.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1684897646; a=rsa-sha256; cv=none; b=qY4xAr7QgQd1FxV3E+AkmAz4leset55QN8Kh/eDeY3VD42zpJcDuWqmzPS80vYlrRXiFda 9G64aGU5bTT27j69P9CHJz7bTNTrY3IlRXIthvLDBCmbDuv+F7XTx2YtxfgCdGpz5gBE3v uECKDF9mdkkx1jXmpz1dV23yfFN7Q8xwLghI2AiciCKtD8SL9QQpPTpLhaK7cdbY3g65WY WMJ72gxi0E5/x1iKhq1bXTJnGam561U6Mr8d2lS4a+BtXk25xqr2JJqt1J+lw6CF8ojtBn Xs8fqWekgUHjz9twlrb/FnJXMCpMY3tzMUFPRUVNLDGJg/qCFA3v2c2iM8WNng== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail3 header.b=GjTk97xV; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1684897646; 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=TRXLXyKBHYQoDBIcys7YYtXJDQimgqoXLUNwXakKCRs=; b=BocVzwR1jgu9YMHThPyoRRQIGiHMTad0Ksddj1FP+num7bAGs/0VnR0Zqg5TW+txmiL1ah T59P1imwXKEbj0jZGxBMx0wGC7P92+BwDGEiZoShoP1F+0knFK2O03gb1/HR3UJytyCQuf 7fwVDE11Cl+xb9NQaK7khStxzyOLk7GGoKEz7MZ7pnC2LxxcgyFwPxhYu/Mzku0sCt8or6 Y4JAKJdgB1haNs87qtikBbke5TJJjPAKgX6Eq/40G6PSltyOBG1c8VJ58glQ+Znx1o20t7 wwlb5zrV4U01Sc8kAMOOjBuw/y09G3cfVw/NsxktXSwtOTvvWlrifYiKFpN6pg== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail3 header.b=GjTk97xV; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.82 X-Spam-Score: -4.82 X-Migadu-Queue-Id: 1366F39634 X-TUID: oY8On4q9enyO I don't like the unpredictability of jgart's original proposal, but maybe s= omething explicit could still look similar. Suppose you could build emacs-ement these three ways: # no transform- this is a version packaged in Guix guix build emacs-ement@0.5.2 # transform using `with-git-commit` guix build emacs-ement@git-commit:8b56efa9387262514daf63151d41c9e111e79567 # transform using `with-latest` guix build emacs-ement@latest # transform using `with-version` guix build emacs-ement@version:0.8.2 A short syntax for transforms would contribute to readability and ergonomic= ease. Worth looking into. Ryan ------- Original Message ------- On Tuesday, May 23rd, 2023 at 5:20 PM, jgart wrote: >=20 >=20 > > What disturbs me with your suggestion is that it reuses the same syntax >=20 > > that is already used for a different purpose. So in a sense you do > > "operator overloading", and the same command line then means different > > things depending on whether the package version is already provided by > > Guix or not. >=20 >=20 > Yes, I see how that can be an CLI smell and "not Guixonic". >=20 > Would be sweet to have something like it but I realize the negative of di= rtying the current API's explicitness to get lower verbosity invocations at= the shell prompt.