From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 0JfzElezk2adgwAA62LTzQ:P1 (envelope-from ) for ; Sun, 14 Jul 2024 11:15:35 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 0JfzElezk2adgwAA62LTzQ (envelope-from ) for ; Sun, 14 Jul 2024 13:15:35 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=fGHT74as; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1720955735; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=LO6Fm7AG9OjrQ5hD4/+/O4vQVTpAR4ueuxGK0B7BUWE=; b=u0M31aVZPTO5fX/R1wNXbkgq+/Nat4IAPEYSUTUPpsbJJQ2mAM5oDQZAjvL8ekwojHnQdd GX8Qn5dOM8VBka9u65d9sC8db2dbkOzIzwVquUrNsjNp7uPMWuznq+yyIk7e8JLxAJucdx oApiyVCPvRULOyXST6FRhijup2pDr//UC4u85bAFDnf95YTRrnyVle13TrMg3WFrz+HUXb HaVNqQib05Nsu6JGG/tNIZDwHKaN//3b62Tp9+fWyZsXtJv6y1fRWXBbS76N40gU3BmFb/ Laeq532gCBby37YK4AlMFOC0PevoCadspinc6IhBn97sroT/X3eTlFb0pIJx8w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=fGHT74as; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720955735; a=rsa-sha256; cv=none; b=RVVOZcJZ++6XyJCeqOKdGPBVLcz90gVqSxiw5iVkKetpV82wYSXqEeTmrcgLkxwRDQkEob Dov8ZxoxhUqwYcnR1c36jjaDCHYxWL/gMIFRTZeDLlXLZ3OaYlsRIYfU0FUaGQlccYfcod SyAdFKJriS57twT/W4zq/kQNt40B4Vg8qkzBRcb0t8IHXMGQf1AzD4UDjgWsPDkxYR3AHD 1csyom8Avqs+mJCf1s9LNkRVZHXW6Mi06VuaxumaQHG5C6ynTVDbv8uVpKfDgTfc/jqPwW XDJp8EXw4aq/TPATyk/O1DVt5SL6rfvlw4ekaw5bZAXW/V2yYqKWynIVJLWklw== 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 20A427499C for ; Sun, 14 Jul 2024 13:15:35 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sSxBt-0008Qe-GQ; Sun, 14 Jul 2024 07:14:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sSxBX-0007O6-6Y for guix-devel@gnu.org; Sun, 14 Jul 2024 07:14:32 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sSxBV-0004Vr-3K for guix-devel@gnu.org; Sun, 14 Jul 2024 07:14:30 -0400 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-4266f535e82so22653565e9.1 for ; Sun, 14 Jul 2024 04:14:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720955666; x=1721560466; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=LO6Fm7AG9OjrQ5hD4/+/O4vQVTpAR4ueuxGK0B7BUWE=; b=fGHT74asbdrHNw3FwJlhPEWw4HTfVvUadv+NJIbFvbHabfelMw4lzcMD+M/0rTXznc J3CQ/pk06ZwFhRFrpdewGF6CiN+7eTcmBWdsJsNWEEofp4SODXRRTIh0iA5dQYrU17ZP KNIgjYYAzU9Ek+Uhp1x8jgFIYEtEp0cGZaZAFhmFhWtzEc7OyCVkb/G2uHsmk0PxEK8I xUHp354ntgojsd3pDnUXPt96DAeahkkEDQ1PQWNkYguViepM/zs2idklXxyT5cuDGXu+ D4uJGb4NNaZlKgAptLCXBddaqtDLyiOtfc3hZwJGmMjtT0gFD5GwTfCILJ07jeGG/IXz 543A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720955666; x=1721560466; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=LO6Fm7AG9OjrQ5hD4/+/O4vQVTpAR4ueuxGK0B7BUWE=; b=a1QmoJigV8HYJyItNUNe1jtDmwD/RIhbEhxewQsog5qSMkmYlYKsTgu6KzExJ13lnY 6yWfNEgCF2G0hDSFl1c7UQJknuINdeYJof1fHwgLiBKINBZZxkPiT7oXdh9bKSTA9QRL p69NAb/66Fk0EpD+NRtzUj/J9AgYYSkU1lHov6+cGqdcfUm5yf6bsrMKQgvnGe0GdLF7 l7L0/B3z/G85GE1xPt2naKY8+XebSCGAOUHTRWJZybjo/vkqOPsaz2uGVwfsISluOYiZ ZbDNvjzBrcTS4szvkX9L0J5aYJgqOwIA+zBFNl2TrG1BHd9Vhtm+5H7BWDmhPavvcS4A x8MA== X-Gm-Message-State: AOJu0YyxK6e2RCkI9a0GKBypYZpsfEbUmPVuLyblUKJLCJxQD3qmvagy d9XekXoyN98mjxg9SLIJu1XxzFvfGSqGpMHnhcsolwB2nGrR0T8RXKuGv3VwVrOQlZ3+EEKe5Ck TJ5pkc8k41cKFn+VNUlvKJZZtN3NUcaG2 X-Google-Smtp-Source: AGHT+IFfiQijHpDugzwCbSOh2DWY8/BNYfoX6g0OibrxHvXSnUiAJSmHW0CRpjNqDdo2crYhiyhbO94KIzJ6Y2CY0Wo= X-Received: by 2002:a5d:5112:0:b0:363:1a1:10cc with SMTP id ffacd0b85a97d-367ceadb08bmr11254647f8f.66.1720955666263; Sun, 14 Jul 2024 04:14:26 -0700 (PDT) MIME-Version: 1.0 From: Ashvith Shetty Date: Sun, 14 Jul 2024 11:14:14 +0000 Message-ID: Subject: Unable to execute script while pulling a Guix channel? To: guix-devel Content-Type: multipart/alternative; boundary="000000000000297af1061d333729" Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=ashvithshetty10@gmail.com; helo=mail-wm1-x32b.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=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: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -8.74 X-Migadu-Queue-Id: 20A427499C X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -8.74 X-TUID: HefPxu80r7/r --000000000000297af1061d333729 Content-Type: text/plain; charset="UTF-8" Hello, I've been trying to create a mock project that uses Guix not just to build with Guix, but also to turn it into a channel. So far, I've been successful with building the repository with Guix, but I'm having trouble using it as a channel. I am trying to execute a `git-version-gen` command, so all I have to do is set the version using git tag. The link of the repository is available here . Here's how the code snippet looks like: ```scm (define-module (kilo) ... #:use-module (ice-9 popen) #:use-module (ice-9 rdelim)) (define vcs-file? (or (git-predicate (dirname (dirname (current-source-directory)))) (const #t))) (define git-version-gen (let* ((port (open-input-pipe "./build-aux/git-version-gen .tarball-version")) (str (read-line port))) (close-pipe port) str)) (define-public kilo (package (name "kilo") (version git-version-gen) (source (local-file "../.." "kilo" #:select? vcs-file? #:recursive? #t)) (build-system gnu-build-system) ... ) ``` Here's the channel for the same: ```scm (channel (name 'kilo) (branch "test-branch") (url "https://codeberg.org/Ashvith/kilo")) ``` And here's the error when I try to `guix pull`: ```console $ zcat /var/log/guix/drvs/fz/srq8g3lam4hi8daa095n6c7hpmyxkk-kilo.drv.gz (repl-version 0 1 1) /gnu/store/v9p25q9l5nnaixkhpap5rnymmwbhf9rp-bash-minimal-5.1.16/bin/bash: line 1: ./build-aux/git-version-gen: No such file or directory (exception misc-error (value #f) (value "no code for module ~S") (value ((guile-package))) (value #f)) ``` --000000000000297af1061d333729 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,
I've been trying to create a mock project th= at uses Guix not just to build with Guix, but also to turn it into a channe= l. So far, I've been successful with building the repository with Guix,= but I'm having trouble using it as a channel. I am trying to execute a= `git-version-gen` command, so all I have to do is set the version using gi= t tag. The link of the repository is available here.

Here's how th= e code snippet looks like:
```scm
(define-module (kilo)
=C2=A0 ...=
=C2=A0 #:use-module (ice-9 popen)
=C2=A0 #:use-module (ice-9 rdelim)= )

(define vcs-file?
=C2=A0 (or (git-predicate (dirname (dirname (= current-source-directory))))
=C2=A0 =C2=A0 =C2=A0 (const #t)))

(d= efine git-version-gen
=C2=A0 (let* ((port (open-input-pipe "./build= -aux/git-version-gen .tarball-version"))
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0(str (read-line port)))
=C2=A0 =C2=A0 (close-pipe port) str))<= br>
(define-public kilo
=C2=A0 (package
=C2=A0 =C2=A0 (name "= kilo")
=C2=A0 =C2=A0 (version git-version-gen)
=C2=A0 =C2=A0 (so= urce
=C2=A0 =C2=A0 =C2=A0(local-file "../.."
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"kilo"
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0#:select? vcs-file?<= br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0#:recursiv= e? #t))
=C2=A0 =C2=A0 (build-system gnu-build-system)
=C2=A0 =C2=A0 .= .. )
```

Here's the channel for the same:
```scm
(chann= el
=C2=A0 (name 'kilo)
=C2=A0 (branch "test-branch")=C2=A0 (url "https://co= deberg.org/Ashvith/kilo"))
```

And here's the error = when I try to `guix pull`:
```console
$ zcat /var/log/guix/drvs/fz/sr= q8g3lam4hi8daa095n6c7hpmyxkk-kilo.drv.gz
(repl-version 0 1 1)
/gnu/st= ore/v9p25q9l5nnaixkhpap5rnymmwbhf9rp-bash-minimal-5.1.16/bin/bash: line 1: = ./build-aux/git-version-gen: No such file or directory
(exception misc-e= rror (value #f) (value "no code for module ~S") (value ((guile-pa= ckage))) (value #f))
```
--000000000000297af1061d333729--