From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 11 07:06:25 2020 Received: (at submit) by debbugs.gnu.org; 11 Sep 2020 11:06:26 +0000 Received: from localhost ([127.0.0.1]:42629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGgsr-0008J1-40 for submit@debbugs.gnu.org; Fri, 11 Sep 2020 07:06:25 -0400 Received: from lists.gnu.org ([209.51.188.17]:34996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGgso-0008Ir-JI for submit@debbugs.gnu.org; Fri, 11 Sep 2020 07:06:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41362) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGgso-0004RK-BI for bug-guix@gnu.org; Fri, 11 Sep 2020 07:06:22 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:48009) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGgsm-00068d-MF for bug-guix@gnu.org; Fri, 11 Sep 2020 07:06:22 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id A14EF5C0158; Fri, 11 Sep 2020 07:06:18 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 11 Sep 2020 07:06:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=fm1; bh=hhsJIGO/32tM33rchrQ/Ni6n++ h4DuW2bzBq3+UPock=; b=aS983hJvum5E77lfe9HqwZu3q3V3lPkXfap5HdAsXC DjbUrYZ7b8FeigzxZHZTAvYrBU65y/jn0YX8rua1pA4bgVomS6+FbwSYMynCVRvW u2W6dQP4lX7dBEMT8Ciz219FkKLMvQ5TAVEGtJ1TgNaIBFjTdkts2yQrrRuUpeBz R+/opX4RbW52G0nSwNKfi+/knrlR3rq31N9UCs763LVRXPB4h/kIm1DvrS8RHWYe zZN6xaMuaSPNxINqARfy/wCPOBfIRCk5UDw23jFY8IHgbK5sYQJZY2YP8KhlmkiF KrCUpgtFcuvLtQZv58ExVCTdaaugGQoYVMNhH2BBWbZQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=hhsJIG O/32tM33rchrQ/Ni6n++h4DuW2bzBq3+UPock=; b=PQd/pc1bp2VgcZHOcQ20g0 +Auk8P3ok/ogHu3MBUx420npA8YWFZXDgLTFdjJfgypdQnb4RMhFnViW6Tj09Eua CCoVAK6iKdtRukPJD4YiPY43MIMWhktNcGSAQky/rJW4nm45ljD55Ark1FXSiaz1 E5PwW34Ru5yNNMEKOMOJOE9yAkvLvUU/aadbzB6im3gAfwd+fmEL82R/ZB+MvmMl /rE/LUROM1U+20qqiDq/JjwmTUvqBZA+bWqBG5TgXMzxYKOU2CcRrZlOrw24JoiQ aUqKLCIxvVXCuRTAwL3g6kM+f6enBSEkfU4m/4pZEpUp07wrFBohPwNoNKLTytAw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudehledgfeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtgfesthhqredttd dtjeenucfhrhhomhepmfhonhhrrgguucfjihhnshgvnhcuoehkohhnrhgrugdrhhhinhhs vghnsehfrghsthhmrghilhdrnhgvtheqnecuggftrfgrthhtvghrnhepgffhueffhefhue eghfdvuefgkeefgeduledtheevheekkeefffdtheegjeejudefnecukfhppeduleehrddv vddurddtrddvtdeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepkhhonhhrrggurdhhihhnshgvnhesfhgrshhtmhgrihhlrdhnvght X-ME-Proxy: Received: from KHs-MacBook.local (soleil-ext.synchrotron-soleil.fr [195.221.0.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 12A36328005E; Fri, 11 Sep 2020 07:06:17 -0400 (EDT) From: Konrad Hinsen To: bug-guix@gnu.org Subject: guix repl doesn't find the script to execute Date: Fri, 11 Sep 2020 13:06:17 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=66.111.4.26; envelope-from=konrad.hinsen@fastmail.net; helo=out2-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/11 06:32:10 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.4 (/) 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.6 (--) Example: $ guix repl moocrr_guix_jupyter/installed-dependencies.scm Backtrace: 1 (primitive-load-path "./moocrr_guix_jupyter/installed-d=E2=80= =A6") In ice-9/boot-9.scm: 1669:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1669:16: In procedure raise-exception: In procedure primitive-load-path: Unable to find file "./moocrr_guix_jupyte= r/installed-dependencies.scm" in load path But the file is there: $ ls -l moocrr_guix_jupyter/installed-dependencies.scm -rw-r--r-- 1 hinsen users 783 Sep 11 12:43 moocrr_guix_jupyter/installed-de= pendencies.scm And when given the absolute path, guix finds it as well: $ guix repl `pwd`/moocrr_guix_jupyter/installed-dependencies.scm 122 packages: cairo@1.16.0 expat@2.2.9 ... From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 11 07:13:34 2020 Received: (at 43331) by debbugs.gnu.org; 11 Sep 2020 11:13:35 +0000 Received: from localhost ([127.0.0.1]:42643 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGgzm-0008UE-Nk for submit@debbugs.gnu.org; Fri, 11 Sep 2020 07:13:34 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:36041) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGgzl-0008U2-DW for 43331@debbugs.gnu.org; Fri, 11 Sep 2020 07:13:33 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 3D6CD5C0151; Fri, 11 Sep 2020 07:13:28 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 11 Sep 2020 07:13:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= from:to:subject:date:message-id:mime-version:content-type; s= fm1; bh=pEBd1J+c4ViutjG+LkDLJqBw7kXAKyU34HZv7t+ra5Y=; b=mjDEMb9X HtJfsJ0/T8r7XADJ+J6U+1P2bj2C+1N3tvpyaSf9erVDBgRA819p3APnJr3LGPJY 5H7D0ZtVgm8tfdV6dWAZ+c7cYk/sTIN/kptcHJOsi3Jo3XqhDuQhacFZLosWxb5A q8y0hEAFpNMwtDUpVZ4Er8KJ2Iy/d2Juf1zfwRyu2i/HP63PK2eygAqcVMJSF2jx fXRTNxf5EQO3BGE2bgxIM64hY8B23bCqq2w0jgmifprzCzsip5+n9FVdKC9rci9q Xw+ctNWS474eLcSIDlhrpDPGTkQqxX62iNDrk5E5W9oKhZHUuqq8nzxV7xP5Bamk aKXAXuwrfmm5Nw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=pEBd1J+c4ViutjG+LkDLJqBw7kXAK yU34HZv7t+ra5Y=; b=FHtiGHGxWvwN3yiSsZP3/3xVQm2TcVLy/ViyYXB6BYjYj G132TH4GE1+aHVWJ3sqBNqrzCSsf90g0DUD94o7scZetERKW8B4FCkStqDnZkyTg DcTALVnirlc/SNctI+lM02tBm4mpVVkKijS9AFqnqdUXh6DO8YQfY5ork52jLBxK 2H5LyVJy1hIb1nTYR/UpL3JAyXf6xNijERZz1HazDbUh9nIwD+RgDHMvw6sEteE/ dSzK4U+xirTnQEoTWeHBtJNB+baNKACQ2J0M/VR7IYEVVpBRNw1JySLuMtXyWeHm ySXlegJAcSZ+/hZAQK+r7WqcNhrNFW96JzmV9qheA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudehledggedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtsehttdertddttd dtnecuhfhrohhmpefmohhnrhgrugcujfhinhhsvghnuceokhhonhhrrggurdhhihhnshgv nhesfhgrshhtmhgrihhlrdhnvghtqeenucggtffrrghtthgvrhhnpeevfeevuedtiedtte etgfeghedvudeileekgfehkeehudetveehgeeuteeuveejheenucfkphepudelhedrvddv uddrtddrvddtieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehkohhnrhgrugdrhhhinhhsvghnsehfrghsthhmrghilhdrnhgvth X-ME-Proxy: Received: from KHs-MacBook.local (soleil-ext.synchrotron-soleil.fr [195.221.0.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 83E163280060; Fri, 11 Sep 2020 07:13:27 -0400 (EDT) From: Konrad Hinsen To: 43331@debbugs.gnu.org Subject: [PATCH] repl: Look for script files in (getcwd). Date: Fri, 11 Sep 2020 13:13:26 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 43331 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: -1.7 (-) * guix/scripts/repl.scm (guix-repl): Replace "." by (getcwd) --- guix/scripts/repl.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guix/scripts/repl.scm b/guix/scripts/repl.scm index 3c79e89f8d..80bf1460e9 100644 --- a/guix/scripts/repl.scm +++ b/guix/scripts/repl.scm @@ -178,7 +178,7 @@ call THUNK." (lambda () (set-program-arguments script) (set-user-module) - (load-in-vicinity "." (car script))))) + (load-in-vicinity (getcwd) (car script))))) (when (null? script) ;; Start REPL -- 2.28.0 From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 11 07:15:23 2020 Received: (at 43331) by debbugs.gnu.org; 11 Sep 2020 11:15:23 +0000 Received: from localhost ([127.0.0.1]:42649 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGh1X-000063-2K for submit@debbugs.gnu.org; Fri, 11 Sep 2020 07:15:23 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:53017) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGh1V-00005o-1e for 43331@debbugs.gnu.org; Fri, 11 Sep 2020 07:15:21 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 068695C016D; Fri, 11 Sep 2020 07:15:16 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 11 Sep 2020 07:15:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= from:to:subject:date:message-id:mime-version:content-type; s= fm1; bh=fJRJhHOjGUegS4u90N6ODnu9UllqiFv5QLtedLREusE=; b=tyfROV8K dM1btZZThsNeJ8Lj9vyNmEoRpKu+S+UliBMoLqgvT4NPXOcZgEcZD7v9czTy7FOa VkQw6YiA/4/wCsSiCmRuLRhd9B3YHh52dtr43tWzTuZH7X1rKztifHkaOWTkk6JP CfXwMy6e5CTIQTjYiT4bpI2eYHxgHNr+xoA9OdEt0YUGC7igo6hLz9E8sGt7pnjV kFFE6127pK99nT63HB/Ldkrs+XXiaPNCt0kY8JaATEyLdct+GSWHEcklsc3BREMk 0ubdYXEI60sHGoqTVF+vjasH6Qda3y1fZIIAedUAAI7QnzMdu8k8hFHIma5GeJJW xkqJFaD4se5Ajg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=fJRJhHOjGUegS4u90N6ODnu9Ullqi Fv5QLtedLREusE=; b=g7YvNcB5DMmeNuJ0ceZTFaG24KVevaOOu+4Ecl791Ph6O bxGllQLz74b//arevrgKH0oqSBArWYV8V8YM3P2zEJWXpyyyuH5+w6ps8HDXnTEL BukbdSss2JBPEJ5sKAUOIaDbOZbuEGCXo2NOEsUddjtcvo5lySZFyrA6Dr974qrg NKcKLJC2O7tNH2aG++X6xxDTZBBzD34I6suVlQ/jarGkdvYyeAC3TRPE4jyibjL5 gTjr3mgJRyMQD9V++zQRvEr/dM1kZWJ0yIZnFMuTnXo/sLJ5qL8AifAyKYXPE1Dr E9y+/KKxcws+7gnWOqOsCf9d83LAYqZroWK97xXGw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudehledggedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtsehttdertddttd dtnecuhfhrohhmpefmohhnrhgrugcujfhinhhsvghnuceokhhonhhrrggurdhhihhnshgv nhesfhgrshhtmhgrihhlrdhnvghtqeenucggtffrrghtthgvrhhnpeevfeevuedtiedtte etgfeghedvudeileekgfehkeehudetveehgeeuteeuveejheenucfkphepudelhedrvddv uddrtddrvddtieenucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhgrihhlfh hrohhmpehkohhnrhgrugdrhhhinhhsvghnsehfrghsthhmrghilhdrnhgvth X-ME-Proxy: Received: from KHs-MacBook.local (soleil-ext.synchrotron-soleil.fr [195.221.0.206]) by mail.messagingengine.com (Postfix) with ESMTPA id 62A653280067; Fri, 11 Sep 2020 07:15:15 -0400 (EDT) From: Konrad Hinsen To: 43331@debbugs.gnu.org Subject: Patch Date: Fri, 11 Sep 2020 13:15:14 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 43331 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: -1.7 (-) The patch that I just submitted fixes the problem. However, I don't really know what the cause of the bug is, given that load-in-vicinity is undocumented and I don't fully understand its implementation. So maybe there is a better way to fix this. Konrad. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 11 07:19:17 2020 Received: (at 43331) by debbugs.gnu.org; 11 Sep 2020 11:19:17 +0000 Received: from localhost ([127.0.0.1]:42660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGh5I-0000CV-Pt for submit@debbugs.gnu.org; Fri, 11 Sep 2020 07:19:17 -0400 Received: from mail-qv1-f42.google.com ([209.85.219.42]:38574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGh5E-0000CF-0e for 43331@debbugs.gnu.org; Fri, 11 Sep 2020 07:19:14 -0400 Received: by mail-qv1-f42.google.com with SMTP id p15so4439809qvk.5 for <43331@debbugs.gnu.org>; Fri, 11 Sep 2020 04:19:12 -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; bh=La3H89N7eYUNVuBcv1rS2MuZkgKaaMGvuUtBSv3fJH4=; b=YVAhybmiy3rS9VQ/MctiAUnRiqXOQVZ/km4naoB0fjwH8jWr6Ul+89txAtc6iIbKPe QQsEopps7INNK4FYmEEEJeLz9PpzirAed5acywQT3wipY1xxzr9DO/zQJnLChdKXAXQ9 sHdpK1pFymezOtVQXjDLL0qXeenJdKkYQHl+SXVuawmopVlpcMxa1Slohab85nJ2gkoe SirwkEU/iZAN1oCrszx+VsjP8J5NqEkR4xXN6J81sSfo4ZLx73Ex+D3MZFwOOl8kUFcg 4uqHe44SIFuHKI3lANzrJBOnMhk3e8Y3UmaW3BKOoTrBKxA5gr/DSlMUvjKe358+gqay XpXQ== 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; bh=La3H89N7eYUNVuBcv1rS2MuZkgKaaMGvuUtBSv3fJH4=; b=UmzEaey1dC7kpnDS/38Xw41RLPk9+VG39pzmMHSEXA9LDP/VpEhuSKZ91jJfnHTqtx 8qNDpygBeU11VSXAOFXmStYmXcCbSXnOxB0kGg1sW6eIOtIq/S0/bkG6h1NNFHBcVtyR kG/pxJ1P8MreTrVriIzSWV0KVZ5o5VEgTBBssYkJF/G6g6FcJ+sIogwH14r3E2ivAsJF nJNIr//8xAfnWlazcxtfxJcXP7R7j0MA/zdhMz03jE5aUz5H1Jn3l0vRW7BVQ74QvnJj UPfENICdvBOnWTdKl44mWTrVxAS968uKruokkGnHaOyaw0EVX2ulx3eEgrJbOd7xVPaj D+KA== X-Gm-Message-State: AOAM531mq/FyI1lwYSi3r54Z0wNmF/IP5G9Q7kP04KLUvqkV5Dnpr/ZI pS2R5Z1lybgM1KwnsrVV4Oh5YWt9xcoSol6heFk= X-Google-Smtp-Source: ABdhPJwKHSPfaVvC/D4v74Oug+yCM2eUs/sWVSKHVkFNuu0GSNy67TxmYCEbDW5b6FDEBwuGGkWqUV/A+Tcj/WaXWOw= X-Received: by 2002:a0c:becc:: with SMTP id f12mr1371265qvj.46.1599823146442; Fri, 11 Sep 2020 04:19:06 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: zimoun Date: Fri, 11 Sep 2020 13:18:54 +0200 Message-ID: Subject: Re: bug#43331: guix repl doesn't find the script to execute To: Konrad Hinsen Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43331 Cc: 43331@debbugs.gnu.org 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: -1.0 (-) Hi Konrad, It sounds similar to the recent #42543 [1]. I proposed the fix [2] using 'canonicalize-path' but Ludo was not fine with it and then committed d10474c38d58bdc676e64336769dc2e00cdfa8ed [3]. [1] http://issues.guix.gnu.org/42543 [2] http://issues.guix.gnu.org/42543#3 [3] https://git.savannah.gnu.org/cgit/guix.git/commit/?id=d10474c38d58bdc676e64336769dc2e00cdfa8ed Does it make sense? Cheers, simon From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 11 11:32:09 2020 Received: (at 43331) by debbugs.gnu.org; 11 Sep 2020 15:32:09 +0000 Received: from localhost ([127.0.0.1]:45168 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGl20-0007d2-Pl for submit@debbugs.gnu.org; Fri, 11 Sep 2020 11:32:09 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:45503) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGl1y-0007cV-TU for 43331@debbugs.gnu.org; Fri, 11 Sep 2020 11:32:08 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id CB7377B2; Fri, 11 Sep 2020 11:32:00 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 11 Sep 2020 11:32:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= from:to:subject:in-reply-to:references:cc:date:message-id :mime-version:content-type; s=fm1; bh=ULe+m1vLB7VXSvh3w8O/j+f5DP csoolkHyijtFBHe+M=; b=FhfmydVYtylgTEIVCf9AidmWosi7qBn3RHKJIU3Y3E 9cTRGWDk1UJJ379JQlU+HchKSOg3lrfKpRmdllCZtmp3BClvvIBukmhnt7zVZFCq sNKWg+poUAvBivLwGwfGM/egNyeAPOFEbsICcj+izXFLdOdDVKeAPw89+eR7bTyx Ls1Wnv5+Ono+2QcbYd0CEJE44sj7zeFigqzH7JzNjfNS/c9GMKeFkgcdNRcsOH4o Fe72n+/P1k+vBR0sCsQNYUJgGlBahL7nOQ5dzKUqEGH7BO6zNY6wBu/LDb+gyg7+ XfnNQEwZRAimuKKIrOzzfb4Bn0l9J3jkCQSQ1hiEVhvw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=ULe+m1 vLB7VXSvh3w8O/j+f5DPcsoolkHyijtFBHe+M=; b=FD+2I/Za7NxMz60dKNYddD 6/8MrM2whkRZKjDHBV6l/tLI/0aGiOe2/wCb7qRLMEX/p9ugKASGVM1vuFQX3/pH sGoeyehrwnGvWirH2iDn7RrkCesW9KsIyLktAtVyRgmYVPBnXE250zeZ8gnu6Kyf uEp5Ei8pTq/Rr2t7y8Fb9X/cmI4BPM9R3oC2G6vqbT0wTAs9h5tGikScufQKDyNV x2XneAQ7D5H918h7jl7ED64VZwMAjJa4uQ61ybbwy858/pD7tcWn7+NoRmwtV1Cq 6T86czmKuEjJPwuF6e2703aVmONumG+wyUnQ7Du54s21av5UjbFGkgFkIPyhWbDw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudehledgledvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffujghffffkgggtsehttdertd dttddtnecuhfhrohhmpefmohhnrhgrugcujfhinhhsvghnuceokhhonhhrrggurdhhihhn shgvnhesfhgrshhtmhgrihhlrdhnvghtqeenucggtffrrghtthgvrhhnpeeikeejjeevue eifeejhedtgeethfdutefgveffhfeuheejveeiieegvdfhtdeifeenucfkphepkeeirddv feekrddufeekrdelgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehkohhnrhgrugdrhhhinhhsvghnsehfrghsthhmrghilhdrnhgvth X-ME-Proxy: Received: from ordinateur-de-catherine--konrad.home (lfbn-idf2-1-907-94.w86-238.abo.wanadoo.fr [86.238.138.94]) by mail.messagingengine.com (Postfix) with ESMTPA id B8CCC3280063; Fri, 11 Sep 2020 11:31:59 -0400 (EDT) From: Konrad Hinsen To: 43331@debbugs.gnu.org Subject: Re: bug#43331: guix repl doesn't find the script to execute In-Reply-To: References: Date: Fri, 11 Sep 2020 17:31:58 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 43331 Cc: zimoun 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: -1.7 (-) Hi Simon, > It sounds similar to the recent #42543 [1]. I proposed the fix [2] > using 'canonicalize-path' but Ludo was not fine with it and then > committed d10474c38d58bdc676e64336769dc2e00cdfa8ed [3]. Thanks for the references, all that happened while I was on vacation. There is indeed some parallel, but also an important difference: the -L option requires searching LOADPATH plus following local relative filenames. "guix repl" does not search LOADPATH. But I am happy I didn't use 'canonicalize-path' in my patch ;-) Cheers, Konrad. From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 16 09:36:20 2020 Received: (at 43331-done) by debbugs.gnu.org; 16 Sep 2020 13:36:20 +0000 Received: from localhost ([127.0.0.1]:33593 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIXbf-0006zE-Qi for submit@debbugs.gnu.org; Wed, 16 Sep 2020 09:36:20 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIXbd-0006z1-Aa for 43331-done@debbugs.gnu.org; Wed, 16 Sep 2020 09:36:18 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40262) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIXbX-0006PU-U8; Wed, 16 Sep 2020 09:36:11 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=39618 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kIXbV-0000HF-C4; Wed, 16 Sep 2020 09:36:11 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Konrad Hinsen Subject: Re: bug#43331: [PATCH] repl: Look for script files in (getcwd). References: X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Jour de la Vertu de =?utf-8?Q?l'Ann=C3=A9e?= 228 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 16 Sep 2020 15:35:55 +0200 In-Reply-To: (Konrad Hinsen's message of "Fri, 11 Sep 2020 13:13:26 +0200") Message-ID: <87zh5pn8sk.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 43331-done Cc: 43331-done@debbugs.gnu.org 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: -3.3 (---) Hi, Konrad Hinsen skribis: > * guix/scripts/repl.scm (guix-repl): Replace "." by (getcwd) > --- > guix/scripts/repl.scm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/guix/scripts/repl.scm b/guix/scripts/repl.scm > index 3c79e89f8d..80bf1460e9 100644 > --- a/guix/scripts/repl.scm > +++ b/guix/scripts/repl.scm > @@ -178,7 +178,7 @@ call THUNK." > (lambda () > (set-program-arguments script) > (set-user-module) > - (load-in-vicinity "." (car script))))) > + (load-in-vicinity (getcwd) (car script))))) I added a test and a comment and applied. Thank you! Ludo=E2=80=99. From unknown Sun Aug 17 09:10:50 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 15 Oct 2020 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator