From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: bug#38528: Add test for `guix pull' Date: Sun, 8 Dec 2019 21:59:41 +0100 Message-ID: References: <87immqu8qw.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:51590) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ie3fr-00022A-W6 for bug-guix@gnu.org; Sun, 08 Dec 2019 16:01:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ie3fq-0001Ld-O7 for bug-guix@gnu.org; Sun, 08 Dec 2019 16:01:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:46320) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ie3fq-0001Kh-CU for bug-guix@gnu.org; Sun, 08 Dec 2019 16:01:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ie3fq-0002L1-9v for bug-guix@gnu.org; Sun, 08 Dec 2019 16:01:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87immqu8qw.fsf@ambrevar.xyz> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Pierre Neidhardt Cc: 38528@debbugs.gnu.org Hi, Thank Pierre to raise this issue. On Sun, 8 Dec 2019 at 16:40, Pierre Neidhardt wrote: > The current way to do it is to run > > guix pull --url=/path/to/checkout --profile=/tmp/guix.master When I put that in a test -- say tests/guix-pull.sh -- troubles arises... The main one appears because there is no user (chroot environment I guess). Currently, Guix looks at $USER and $LOGNAME then goes in "default" and applies "Migrating" profile code. Note that it appears too with non login shell as reported here [1], perhaps not related. [1] https://lists.gnu.org/archive/html/guix-devel/2019-12/msg00021.html What is the best: - set manually the variable USER to `whoami`? or - change to scheme code to call `whoami`? Does Guile expose that? All the best, simon