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 ZupzGs9CPmFGMQEAgWs5BA (envelope-from ) for ; Sun, 12 Sep 2021 20:11:27 +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 SCKeFc9CPmF6UwAAB5/wlQ (envelope-from ) for ; Sun, 12 Sep 2021 18:11:27 +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 BE07DF74B for ; Sun, 12 Sep 2021 20:11:26 +0200 (CEST) Received: from localhost ([::1]:36180 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mPTwr-0002kr-Qd for larch@yhetil.org; Sun, 12 Sep 2021 14:11:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56020) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPTwT-0002ja-So for help-guix@gnu.org; Sun, 12 Sep 2021 14:11:02 -0400 Received: from mout01.posteo.de ([185.67.36.65]:46399) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPTwP-0007UO-ON for help-guix@gnu.org; Sun, 12 Sep 2021 14:11:01 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 56B6C240027 for ; Sun, 12 Sep 2021 20:10:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1631470255; bh=MxdL6VI6Pgm+m5fWeW8senu38lSqTdzVB0tef4jtsMU=; h=To:From:Subject:Date:From; b=L3SlEpECEhAabHqo6e1dGWDbNL/LzkF53/uSuZv4O/IouQsnHx41bkt+R3exu/9Or eRL+4PqPBuFxejQEhGCBDfwm97cWMlWtolkGb9LK344/uAFwakM+Ut/SxzNYkH/px0 YSL3JRuJ4TluaUv44vyCDs8ja7ji8gpmhazYGrVx13CjHRpld/RuiaqdhOBOVnqbaF NHwVhl8gg1qgGWOjwZdIUN2LjfIHm5imSGGlWVS3a13oDadhnq6iDuveeY+5w918lY bz+1dwtpMfGXGMErXa8O6xiRx7RFhu9EgLBdL3eWCzNQUVfQeugHdwnxNmwoxxtYGc 0D90ULT/zYeGw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4H6yMy4z7xz9rxP for ; Sun, 12 Sep 2021 20:10:54 +0200 (CEST) To: help-guix@gnu.org From: Zelphir Kaltstahl Subject: Ignore / Exclude files and directories in a package definition Message-ID: Date: Sun, 12 Sep 2021 18:10:53 +0000 MIME-Version: 1.0 Content-Language: en-US Received-SPF: pass client-ip=185.67.36.65; envelope-from=zelphirkaltstahl@posteo.de; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631470286; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=6/I2XUYUuuH1zIicjkG2csvz3sCnLihfMmL2Mm43Z7Y=; b=TOGqjQM1fRBsGs0uoj0xA3/J/ZeMFTqwbEwDk6S53Nev7p0oYyr83mGtYn1qHf8XMp9LJo BHx7C4l7/JaFOSHSuEmjtPbhnGRUE/RPory7l+JkBKdelioIjltRpgvpeMetLwUesH76l3 CWaqfd2pQhPM70vy7hUUBwsUzTdUycd9C0b1Kp/O9xSoLYFnn9/wEfG14bMDPbT6K3r5Cu PMl4Rn6hNX9TO0eUo2ZFDhDanCiIuCX9+fP6r3/Kqxq65LIw7l/h4ZpeIVFT+ogBtbiDCX K+FpB1cJyesoUkJLvTfx2iPBfzY7IKZ6Dw0heRlFG/VUIig2ACiCI97zMzFpMg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631470286; a=rsa-sha256; cv=none; b=SL5APU2fgJlSWoW3cRNdf7ewZEXGgP4wdR8N9O31RNo1NXoYwLG7OHznHHFFli0kput8jW 6OpUNKapEQiwH5x3VPhCExMikliJgq/JBtbjEYg5AsEMm882WhCS8RRZSMrXY9V/ORCC8f 25D8eWF0TAqUFAEHK5Ng9jORa1YafvnKohoEvQFJT90ckHApLuLrat9AHgl0M1RuNDm+TG q0cBB5HaeDl4DGIjW1dcejslm1AEKtWs9zJDH4d6HMxEBvhcKf/cS1oj41tlFq1aiu19Pe AyouMODmv6DNz4+ZxPviQPqlKIsnqVJ3NuieS2mXlessBHS6UeXz0TDSZJOJPQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=posteo.de header.s=2017 header.b=L3SlEpEC; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: 0.19 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=posteo.de header.s=2017 header.b=L3SlEpEC; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.de (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: BE07DF74B X-Spam-Score: 0.19 X-Migadu-Scanner: scn0.migadu.com X-TUID: oO1986HGz+OU Hello Guix users, I have another question about package definitions: How can I specify in a package definition, that I want Guix to ignore some of the files and directories? I wanted to update my package and thought: "Oh, I simply need to update the version reference and the hash and that will be it!" but I did add a folder called `guix-env` in which I usually put `manifest.scm`, `channels.scm` and `env.sh`, a shell script, which gets me into a Guix environment, in which all the dependencies listed in `manifest.scm` are installed from the channel described in`channels.scm` using guix time machine. When I test the installation of my updated package, Guix seems to pick up those files and then shows errors in the logs: ~~~~ guix-env/channels.scm:1:6: warning: possibly unbound variable `channel' guix-env/channels.scm:2:8: warning: possibly unbound variable `name' guix-env/channels.scm:3:8: warning: possibly unbound variable `url' guix-env/channels.scm:4:8: warning: possibly unbound variable `commit' guix-env/channels.scm:6:8: warning: possibly unbound variable `introduction' guix-env/channels.scm:7:10: warning: possibly unbound variable `make-channel-introduction' guix-env/channels.scm:9:12: warning: possibly unbound variable `openpgp-fingerprint' [ 1/13] Compiling... wrote `/gnu/store/52bkbcm35rl647k3qlhb7q67p9wafxq2-guile-fslib-0.2.1/lib/guile/3.0/site-ccache/./file-reader.go' [ 2/13] Compiling... wrote `/gnu/store/52bkbcm35rl647k3qlhb7q67p9wafxq2-guile-fslib-0.2.1/lib/guile/3.0/site-ccache/./file-system.go' [ 3/13] Compiling... wrote `/gnu/store/52bkbcm35rl647k3qlhb7q67p9wafxq2-guile-fslib-0.2.1/lib/guile/3.0/site-ccache/./guix-env/manifest.go' guix-env/manifest.scm:1:0: warning: possibly unbound variable `specifications->manifest' [ 4/13] Compiling... ice-9/boot-9.scm:1669:16: In procedure raise-exception: Syntax error: unknown location: unexpected syntax in form () process '/gnu/store/18hp7flyb3yid3yp49i6qcdq0sbi5l1n-guile-3.0.2/bin/guild guild compile -L . -o /gnu/store/52bkbcm35rl647k3qlhb7q67p9wafxq2-guile-fslib-0.2.1/lib/guile/3.0/site-ccache/./hall.go ././hall.scm -Wunbound-variable -Warity-mismatch -Wformat ' failed with status 256 ~~~~ I am convinced, that this is, because at that point, there is no Guix context, in which those things are defined, as Guix is processing a package and there should not be any things defined, which do not belong to the package or are in its inputs. But the thing is, I do not want Guix to pick up and look at those files in the first place. I would like to put them on a ignore list. I checked the following docs without finding any way of excluding the files: (1) https://guix.gnu.org/manual/en/html_node/package-Reference.html (2) https://guix.gnu.org/manual/en/html_node/Defining-Packages.html (3) https://guix.gnu.org/manual/en/html_node/origin-Reference.html In theory I can always make a separate branch in my git repository of the library and remove these files and then place the version tag on that branch, but is it really necessary? And also: If I exclude these files somehow, while keeping them on the commit in the git repository of my library, do I need to change the guix hash calculation, to also exclude them when the hash is calculated? I calculated the hash using the following command inside the root directory of the library: ~~~~ guix hash --exclude-vcs --recursive . ~~~~ The library is at: https://notabug.org/ZelphirKaltstahl/guile-fslib . If you look at the tags `0.2.0` and compare with `0.2.1`, you can see the additional files, which I want to exclude. Best regards, Zelphir -- repositories: https://notabug.org/ZelphirKaltstahl