From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eDbUJ507TmF9/QAAgWs5BA (envelope-from ) for ; Fri, 24 Sep 2021 22:57:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id WENLI507TmHTOgAAbx9fmQ (envelope-from ) for ; Fri, 24 Sep 2021 20:57:01 +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 3D67E1431A for ; Fri, 24 Sep 2021 22:57:01 +0200 (CEST) Received: from localhost ([::1]:53110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTsFf-0007iM-BY for larch@yhetil.org; Fri, 24 Sep 2021 16:57:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58690) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTsDT-0006uA-IP for guix-devel@gnu.org; Fri, 24 Sep 2021 16:54:43 -0400 Received: from ciao.gmane.io ([116.202.254.214]:40474) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTsDR-0006g2-R5 for guix-devel@gnu.org; Fri, 24 Sep 2021 16:54:43 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mTsDO-0004gX-LM for guix-devel@gnu.org; Fri, 24 Sep 2021 22:54:38 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: guix-devel@gnu.org From: Robin Templeton Subject: Re: guix environment --load vs. --file inconsistency Date: Fri, 24 Sep 2021 16:54:29 -0400 Message-ID: <878rzlwv7e.fsf@terpri.org> References: <87czoz81cf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:PKYMshs1zm+eaX/KKP4DljxY/9U= Received-SPF: pass client-ip=116.202.254.214; envelope-from=gcggd-guix-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.248, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , 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=1632517021; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=4hLC4O5NA0KdGrA5MuBWRq9FvE7z5v4VEeUg367Z3fA=; b=k1Ic7h5GdO1HwrYntHRDH3re5fuR9xfCvDcjd9+w33JN7oY4dwC2r7WyzXcmMY3qgqelez aPcRCC21dCMMsqujvW+swSTk38qAq6r88I2PU5Hf65KQZ2WBz0TsRrT0fLbo9sD5fJhNhq r3JEw7yTCB1sFwhJ+xnkO+D2NYJzYcjJy08NP7MDAvVeEaFXZZEeRQNeOIapHZbkluTRTd LprDvFB6S+eoV8a884HPe/DFkKbBJfcBe4lnBw6yEJ3sGVmRs64wNEL/9OnSDQDMsnCTTK 75T+o1vx6uwtXgnvjEi4g9Ljoxol6ntRyjlkQTWM2+ojDI74OMVv6IETPq+lBQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632517021; a=rsa-sha256; cv=none; b=AQlwng5zVeI7+GN1sYLQRwdf9W2JWQW62AgJk/7cIEmU0rxKJ98HFS0LMT2sO9sVK7KiHD glmL+SlxRnOeu3b5yqDrdMHh0cZOwNLmFemwH1+1fknDL+uVC2KYxZEufA+PJI+rn+b37c Tq5v7cWlk601n3yd6iKBfhG/f1TnUcvJlXvlFbXGYuw0tDutKXFGhFOT84PETMUsKy8VAo bnStwXrfaqS60Sn9PI1RP3P8DmN7IkvVRlPLa/TWS3UDG4ht2YBHXn3+GznB1ZoohaATpJ qHxPZ0g86TORulE8GKWqJ56fwyM2BvPxlIXEG1p2wZBNHx9TiYOT5b/GFzks+Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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-Spam-Score: -1.89 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: 3D67E1431A X-Spam-Score: -1.89 X-Migadu-Scanner: scn0.migadu.com X-TUID: YulkZB6xLJ0G Ludovic Courtès writes: > Hi Attila, > > Attila Lendvai skribis: > >> i was writing the documentation of a guix.scm file, and i realized that there's an inconsistency among the three most used commands in this context: >> >> so, there's: >> - guix build --file >> - guix package --file >> >> and then there's: >> - guix environment --load >> - guix pack # has neither >> >> i'd propose to change guix environment to also use --file, but maybe i'm overlooking something, so, please speak up if you think it's a bad idea! >> >> i never used guix pack, but maybe that also deserves a --file argument? > > Good point. ‘--file’ predates ‘--manifest’; we could perhaps deprecate > ‘--file’ in favor of ‘--manifest’, though I think there’s one special > case not handled elsewhere: > > guix build -f foo.json > > We need to do something about it. > > ‘guix environment --load’ could be similarly deprecated, either to be > eventually removed or to be renamed to ‘--file’. > > Thoughts? FWIW, I use 'guix build -f' all the time, 'guix package -f' occasionally, and 'guix environment -l' once in a while, too -- much more frequently than the manifest-oriented versions. (And I do find it confusing that 'environment' uses '-l' rather than '-f'; IMHO it would be a nice improvement for UI consistency to have '-f'/'--file' permitted as an alternative for '-l'/'--load' there.) I often write simple packages in individual files, outside of the guix repo or any kind of proper channel setup, and I don't see much point in requiring every such package to have its own single-package manifest, although it wouldn't be too difficult if it were required (just extra boilerplate for standalone package files).