From unknown Fri Jun 20 07:09:04 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#50468 <50468@debbugs.gnu.org> To: bug#50468 <50468@debbugs.gnu.org> Subject: Status: Should `guix deploy` save to the deployed server the operating-system, or the entire file passed into the command? Reply-To: bug#50468 <50468@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:09:04 +0000 retitle 50468 Should `guix deploy` save to the deployed server the operatin= g-system, or the entire file passed into the command? reassign 50468 guix submitter 50468 Katherine Cox-Buday severity 50468 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 07 23:09:17 2021 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 To: bug-guix@gnu.org Subject: Should `guix deploy` save to the deployed server the operating-system, or the entire file passed into the command? 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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) *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