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 sIYEC7QpOGEfQQEAgWs5BA (envelope-from ) for ; Wed, 08 Sep 2021 05:10:44 +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 OGUcBbQpOGGULAAAB5/wlQ (envelope-from ) for ; Wed, 08 Sep 2021 03:10:44 +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 6177518900 for ; Wed, 8 Sep 2021 05:10:43 +0200 (CEST) Received: from localhost ([::1]:54474 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNnz0-0007Bl-AW for larch@yhetil.org; Tue, 07 Sep 2021 23:10:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50486) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNnyM-0007AH-7I for bug-guix@gnu.org; Tue, 07 Sep 2021 23:10:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46574) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mNnyL-0007D5-Vn for bug-guix@gnu.org; Tue, 07 Sep 2021 23:10:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mNnyL-0004az-LR for bug-guix@gnu.org; Tue, 07 Sep 2021 23:10:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#50468: Should `guix deploy` save to the deployed server the operating-system, or the entire file passed into the command? Resent-From: Katherine Cox-Buday Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 08 Sep 2021 03:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50468 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 50468@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163107055717606 (code B ref -1); Wed, 08 Sep 2021 03:10:01 +0000 Received: (at submit) by debbugs.gnu.org; 8 Sep 2021 03:09:17 +0000 Received: from localhost ([127.0.0.1]:58120 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNnxc-0004Zt-Nq for submit@debbugs.gnu.org; Tue, 07 Sep 2021 23:09:16 -0400 Received: from lists.gnu.org ([209.51.188.17]:56324) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mNnxb-0004Zm-E3 for submit@debbugs.gnu.org; Tue, 07 Sep 2021 23:09:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNnxb-00067n-7u for bug-guix@gnu.org; Tue, 07 Sep 2021 23:09:15 -0400 Received: from mail-io1-xd29.google.com ([2607:f8b0:4864:20::d29]:43766) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mNnxY-0006YD-Ro for bug-guix@gnu.org; Tue, 07 Sep 2021 23:09:15 -0400 Received: by mail-io1-xd29.google.com with SMTP id n24so1265546ion.10 for ; Tue, 07 Sep 2021 20:09:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:user-agent:mime-version; bh=NxpnWwLbkkcyO7XdBFfDe44oij1PnerpZE/PSLp8UYo=; b=Tk9Pt2oUyUHICUkzSW1ByQujZ1rS5/Q4hk8VTyxoNF6PsWyt2XypvQwVV7KxxeWZLY /acEecBoBtkje94YYSczse+qhYGtyFgAAgXdaQ9PquvSYcboXcUFd367a6fk387QcMlV Smhvq7KOGcsdzODx9gdvHdBYHqvKcXFifK+WqAvGsyp/hCQHnrWibgekGykWspQh28At V/7BhyrAh2jsQV5xhytMl8f1wPIAqiwdkx+DqQ6qJ+Ie3uUHY+T9Sf3vdzqsqlLweGK8 9mvpR+eCAOksgnWLOO57Uy2sIPGyPDjPqn0izo3Yr/n3S4SYkhftUfzHW+hUYCYl4FYo 0/8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=NxpnWwLbkkcyO7XdBFfDe44oij1PnerpZE/PSLp8UYo=; b=QHEL3s/nmusbSGkIiYXGur7S4viNUQvVxARV4EdNZiUVCVcH6CleWoQ3OOHYbjJtAG zvklXQ/O/YoYlB29+OOOtcVaCKOwUufXcA7hGKiiJGQ+/Ugua9f2haCgVjEFHGQz7ZuT nsCRqzLCfnnw/JpY84caK396lRwTMyZgxm2H8V++kr6NxJmfYuG0ewj4poWz/ZXfpJOD CMI8/e4C9pfvBeYYrgar8vLBPsmf4KN/86A4hw2Qs0begqT+r01tQmrR5uz1uWuzB20z S46fLRtgsNZvMvvdbpmR5qmR7hzlhT7hqOHA1enSWdEgGvx0nftA/l3gzw4HBjTPE0Nf E47g== X-Gm-Message-State: AOAM530vSYL5ulYblm+YgzmQQn2jeU/Htwy09o3lEW/ZFArEoH62UWAm veyz6V+KEx6i8uGCyz/f2U98Bj2LKF0= X-Google-Smtp-Source: ABdhPJyY+NYibm0eCTDa4MiH2u2dBZLG+1HMz4jjf57XBaAdkihOHGSRAYcMENIBrGqbw+9T+SaBDA== X-Received: by 2002:a02:9608:: with SMTP id c8mr1578355jai.133.1631070550421; Tue, 07 Sep 2021 20:09:10 -0700 (PDT) Received: from washu-v4 (172-221-246-205.res.spectrum.com. [172.221.246.205]) by smtp.gmail.com with ESMTPSA id g12sm454665iok.32.2021.09.07.20.09.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Sep 2021 20:09:09 -0700 (PDT) From: Katherine Cox-Buday Date: Tue, 07 Sep 2021 22:09:08 -0500 Message-ID: <87pmtjwyp7.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::d29; envelope-from=cox.katherine.e@gmail.com; helo=mail-io1-xd29.google.com 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_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631070643; 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:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=NxpnWwLbkkcyO7XdBFfDe44oij1PnerpZE/PSLp8UYo=; b=BsxB99A2WTax8sXHVwRqFG7WyGb9IGiImITOgv+QWkmywf0hxjt1pfpYfXcNhQASRUtHB7 GvIuqzHtpQlczIjtXfISvKGeaZrkH4mEAqL1rI5lMt7IxvCjn1kPAuhIUi+UibWwEUpLWh yWHeJ9U91T70vHcDcNK2Dke2lU2iM71LAQZw8qVp82i1P82osXND8r5jvDE8j3c/iFKJuB /tEV2Knrw38MKbJFGLjY6sYP2GUCw7wi9p+hP+l6U5IMFlYqAtB2sbAHd8mkglU8DLoEws +JrvwnXMGzp4Tcp9kYTcAoJInTDJ/KnQHBViWqNMlpvO4tSWv+MyxIWLnylWHw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631070643; a=rsa-sha256; cv=none; b=mkqCJdBrUfxrEthOtbfUROg8ky3/kgVA8YBaVJV0fJ4eHIvMd1wUuSUj9CUm8+CPlshYPz H5g3F0JLdMHildaYNQYkLK981vIjtQhOgXTT6MqBcxdoLEw5KGhPlGqpK3cNEr7M7EQ8Kn KDJEuPRGH0LdSOqN9k9X1RKmUrWBkPwtaTG8zr9FrMN1AlSz8KvYXxFOVDGlajo1hJChQo nK9CY1zEZ52iPhdB64WZSb5Hs3PFmQqE5mJq9qYLZ48IYT3fWhOsG71htVrKfzMT5h5/oy shUPhC/NkPQFXU9LHwfUpid9mM4j9zA4TkEUq7t9Xjs9V15dmV3Q6HjOorEZ9A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Tk9Pt2oU; 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-Migadu-Spam-Score: 1.19 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Tk9Pt2oU; 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-Migadu-Queue-Id: 6177518900 X-Spam-Score: 1.19 X-Migadu-Scanner: scn0.migadu.com X-TUID: qF5DBj6kGEfc *Observed Behavior:* Invoking `guix deploy my-config.scm` will store `my-config.scm` in the deployed server's store, and links that as `/run/current-system/configuration.scm`. *Expected Behavior* I expected the deployed server to only be made aware of the requested `operating-system` declaration. In other words, `my-config.scm` contains a list of machines, and each machine has an `operating-system` declaration. I would expect each deployed machine to only have a copy of their, and only their, `operating-system` declaration, fully resolved from Guile variables into strings and such. *Justification* `guix deploy` expects a file that "evaluates to a list of machine objects". Because of this, it is expected that multiple machines are declared in a single file. These machines may not be related to each other, and they may even have information that should be kept from one another. Therefore, deploying the entire file's contents to a deployed machine's remote store is incorrect behavior. Further, `guix deploy` works if the file given does something like `(load "my-private-stuff.scm")`. It will resolve the Guile variables before deploying, and everything will work. But the `configuration.scm` on the deployed server will only have a reference to the `load` which won't be in the store. The unresolved Guile variables will be listed where they are used. *Workaround* Each machine can reside in a separate file, and then `guix deploy` can be executed for each file with: find . -iregex '.*\.scm' -print -execdir guix deploy "{}" \; -- Katherine