From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aERFLDtKzF7qKgAA0tVLHw (envelope-from ) for ; Mon, 25 May 2020 22:44:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GOMiKDtKzF4gWwAA1q6Kng (envelope-from ) for ; Mon, 25 May 2020 22:44:11 +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 49D46940D35 for ; Mon, 25 May 2020 22:44:11 +0000 (UTC) Received: from localhost ([::1]:58604 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdLpJ-0001lU-2j for larch@yhetil.org; Mon, 25 May 2020 18:44:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43020) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdLpC-0001lI-4G for bug-guix@gnu.org; Mon, 25 May 2020 18:44:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59443) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdLpB-0004lS-Qy for bug-guix@gnu.org; Mon, 25 May 2020 18:44:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jdLpB-0001KU-MA for bug-guix@gnu.org; Mon, 25 May 2020 18:44:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#25952: offloading empty machines file Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 25 May 2020 22:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25952 X-GNU-PR-Package: guix X-GNU-PR-Keywords: moreinfo To: Tobias Geerinckx-Rice Received: via spool by 25952-submit@debbugs.gnu.org id=B25952.15904466335088 (code B ref 25952); Mon, 25 May 2020 22:44:01 +0000 Received: (at 25952) by debbugs.gnu.org; 25 May 2020 22:43:53 +0000 Received: from localhost ([127.0.0.1]:42756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdLp2-0001K0-PR for submit@debbugs.gnu.org; Mon, 25 May 2020 18:43:53 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:36743) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jdLp0-0001Jm-6E for 25952@debbugs.gnu.org; Mon, 25 May 2020 18:43:51 -0400 Received: by mail-qt1-f196.google.com with SMTP id v4so14806865qte.3 for <25952@debbugs.gnu.org>; Mon, 25 May 2020 15:43:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=g/BdQHZTMD+YnOUEg1J3fYpn7gWaEIYNsDPxvLUR2G8=; b=He0QR+ac6p0SyMT2ZdbjkdJ0lpn/uO+2LvdmR7LD46I7J3wlNEzR1zxQhInJXDvOcD FIdfBs98TG6T8tH4N/4hG3C7FInOW805GCKxpFL+lBDdUMtj4vKzFPOnISIzQ7kflAFB l047C4fBrPtGenFY2+U5hxPeu6HBfQ6eM/jXh83eI4W6nUfmWoWE8Ed0VDX3sxORA1sE b04gd1zurTpXBPEYODHwelQdXf1p4q25B6ci2bBYP7j+lBnN4pKmbdTY78Lk5TioLwO9 hGHmnI8DbGQWxfM2AHzZPdj4e5fTykg/cpFWROR7XxsPuNS0wr/5MS+zoFTxcY6pc8o1 eh0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=g/BdQHZTMD+YnOUEg1J3fYpn7gWaEIYNsDPxvLUR2G8=; b=ClyhSEOTQXw+OwjWJH5+Xlp0MwPihhwGSCoVJAn8ga9u8bNLHBksiG8wvzLmUAilQW ons+t+wecTDYiR4aCTgExt8Sjfkg2LgMgTUwF39FFw3RkCAdvSRb87CTY1s5mjMmuvIO rJiyW6Bwcr3Yi5hnSHEDAVcUeHrrN3V2JwlEk25egXtJCziC1fPxkQvsGrYBH0Sg/XuY S5aXrGdQbXdEU06kw7/8g/3a2kgTLBbU6vuD4N13rKW67yelvi7FVapAGoO5aBnfkyYC I5L3gEVjonZX8O6IGYDG0hv59yflKs69bhkRxuYihQ7jYwDspQ62MHwD0/6hzBjzhWkI jtZA== X-Gm-Message-State: AOAM531eZfF8QnqYUhFhW8bK58ma9oiw21e/c19m3j5clsD1JObP6yQK 3IdQCF/M3M9ASCJm/cuGgZQl3IIy8Ah7gcbNWuc= X-Google-Smtp-Source: ABdhPJyNKh5XvV2blbvu01zxQooacp6hfRzrt5Sj+AdUdoO5gNCwgSYI32mDj6NzAqVN4oHAm1jKKuw/1XhvXAOUWis= X-Received: by 2002:aed:3949:: with SMTP id l67mr29222485qte.313.1590446624673; Mon, 25 May 2020 15:43:44 -0700 (PDT) MIME-Version: 1.0 References: <20170303165648.wg5nypcizxr2n6t5@abyayala> <87tv03ycvo.fsf@nckx> In-Reply-To: <87tv03ycvo.fsf@nckx> From: zimoun Date: Tue, 26 May 2020 00:43:33 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 25952@debbugs.gnu.org, contact.ng0@cryptolab.net Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=He0QR+ac; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: ewkK6B0EZmdE Hi Tobias, On Mon, 25 May 2020 at 22:32, Tobias Geerinckx-Rice wrote: > The issue is that files such as /etc/guix/machines.scm (but this > applies equally to /etc/guix/acl & so on) are expected to evaluate > to a sexp. > > An empty file does not a valid sexp make, so Guix throws an > prickly backtrace @ your face & dies. This is unlike most other > configuration formats where an empty file or one consisting > entirely of comments is a no-op. Hum? I am not sure to get the point. Are we talking about this kind of situations, e.g., --8<---------------cut here---------------start------------->8--- touch /tmp/empty.scm guix package -m /tmp/empty.scm -p /tmp/empy --8<---------------cut here---------------end--------------->8--- or --8<---------------cut here---------------start------------->8--- echo ";; hello" > /tmp/comment.scm guix package -m /tmp/comment.scm -p /tmp/comment --8<---------------cut here---------------end--------------->8--- or --8<---------------cut here---------------start------------->8--- echo "(define x 42)" > /tmp/answer.scm guix package -m /tmp/answer.scm -p /tmp/answer --8<---------------cut here---------------end--------------->8--- ? > We should decide whether =E2=80=98=E2=80=99 is a valid sexp (oh dear, phi= losophy) > or throw something softer at people. Throw something more "helping" than e.g., --8<---------------cut here---------------start------------->8--- Backtrace: 1 (primitive-load "/home/simon/.config/guix/current/bin/g=E2=80= =A6") In guix/ui.scm: 1936:12 0 (run-guix-command _ . _) guix/ui.scm:1936:12: In procedure run-guix-command: In procedure struct-vtable: Wrong type argument in position 1 (expecting struct): # --8<---------------cut here---------------end--------------->8--- ? > > Therefore, I am closing. Feel free to reopen if I misunderstand > > something. > > I think this bug should remain open until it's decided. What you? Well, it is a variant of Cunningham's Law, isn't it? :-) So, let reopen it and decide on the philosophical dilemma. ;-) Cheers, simon