From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id +Gy4HghuO2a0KwAAqHPOHw:P1 (envelope-from ) for ; Wed, 08 May 2024 14:20:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id +Gy4HghuO2a0KwAAqHPOHw (envelope-from ) for ; Wed, 08 May 2024 14:20:24 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=freakingpenguin.com header.s=x header.b=rV8VjMm6; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1715170807; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=R6M4tOOKT77eI9G8RTf+631Jy8ww9kLSosjGWCySFYo=; b=PojIBJwQfE7vPvc243kGDH2FjlMggObvbxShBVRJCVU5qhZ2PbPNHv7v4XzDr4x3cvRyYO FZPmWNIjvPNg6R0luVFl9Yp2bew+hDUmvMvGBeJnSeCqcnmlmjOnQiwrhK8+6sh3UIEJSS 2KV+5GiiBTsUO9psud8xNMkl3G81h6vfOwhxKGipJ86FHWsVmxM5qKyCF4f/8xuxwmpMwd 9Gh3Hd669sSdRjLND1WFT55hBx9OttOoGhmZi2qainWMUBGG7tTT59qgnLsNQlPxNXOkO0 W0d2Y9hFvnWZui1vT34StqUC1QW6nlovbCsYRAz8q7J9HNDTdNrQXe9QuzM7fA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=freakingpenguin.com header.s=x header.b=rV8VjMm6; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1715170807; a=rsa-sha256; cv=none; b=qG8ZazR6fkW7uE+GBfJRZso1gGvYorKjMCDyu6jh07GNkVT9FX7PyceyDa9+Bhz3JYZrNN fyRxs3p6q5Ecu9JPWQ1ugVrzS1UObErBT5cG5UZwwulhFSrFSVTUuqy80Ua4+a2w87YSx9 r64CElo7phMxrQjMmNW2jcn2C4wve87SB9FdcrhouXnGlLtHgBYClzWJRa5NZB5/ZMkDGF jaPMRMLGx+bH3BoXTa+CRH8I8NnBZyAhmfofV57gu2EORM2IT/KseH9q0YkjhR9CZ6A+7/ 0WJXHZ79BPnIkZ+3Fpkf3MOlgf7qR03Rfsby9GPrQCtqcSIBNwAnsP0AXSP22Q== 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 A77FE7BD08 for ; Wed, 8 May 2024 14:20:07 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s4gH6-0003Sy-34; Wed, 08 May 2024 08:19:58 -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 1s4gGo-0003Ru-76 for guix-patches@gnu.org; Wed, 08 May 2024 08:19:38 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s4gGn-0006id-G7; Wed, 08 May 2024 08:19:37 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s4gHC-0002pi-Hd; Wed, 08 May 2024 08:20:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70830] [PATCH] doc: Document assume-valid-file-name in local-file Resent-From: Richard Sent Original-Sender: "Debbugs-submit" Resent-CC: pelzflorian@pelzflorian.de, ludo@gnu.org, guix-patches@gnu.org Resent-Date: Wed, 08 May 2024 12:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70830 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70830@debbugs.gnu.org Cc: Richard Sent , Florian Pelz , Ludovic =?UTF-8?Q?Court=C3=A8s?= X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Florian Pelz , Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by submit@debbugs.gnu.org id=B.171517077610871 (code B ref -1); Wed, 08 May 2024 12:20:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 May 2024 12:19:36 +0000 Received: from localhost ([127.0.0.1]:48595 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s4gGm-0002pH-86 for submit@debbugs.gnu.org; Wed, 08 May 2024 08:19:36 -0400 Received: from lists.gnu.org ([2001:470:142::17]:33014) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s4gGj-0002pB-Ur for submit@debbugs.gnu.org; Wed, 08 May 2024 08:19:34 -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 1s4gGE-0003GY-IW for guix-patches@gnu.org; Wed, 08 May 2024 08:19:02 -0400 Received: from mail-108-mta151.mxroute.com ([136.175.108.151]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s4gGB-0006bI-Gk for guix-patches@gnu.org; Wed, 08 May 2024 08:19:02 -0400 Received: from filter006.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta151.mxroute.com (ZoneMTA) with ESMTPSA id 18f582473120008ca2.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 08 May 2024 12:18:54 +0000 X-Zone-Loop: fc493972ed88e22053073d83ee931439a1395d9bf978 X-Originating-IP: [136.175.111.2] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freakingpenguin.com; s=x; h=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=R6M4tOOKT77eI9G8RTf+631Jy8ww9kLSosjGWCySFYo=; b=rV8VjMm6FNr8XR6HDY6qCCpeTv pex3OGKQ8bTGNI8fzTZqkr/WITPZKVPpOK0zd9YSlMJ9J+3/Uv53xnn6Wcr5b7R8n9mPvhFWiuSpL Wzs21JgQCvcG/o1o/Xe2SUxBFn8y2mXESeKCXxrsY+njLHVamL9qg7o0zof+uP+JJcQpwNvVlFa2s 4ss3bZyGjOueafvZgXxl7gj+i7eqJ57sSyuulaPVwsdlYFrO24hqX60RLZk/ZroPqBrQD9bjUEufL aWWAoE0Gzom2WcHujK3lcX2+hPtCgOlf1I7XaI/9e6GcCXlStINeSzTonLIvNevq34nvtzEoinNyf dF0S17+g==; From: Richard Sent Date: Wed, 8 May 2024 08:17:51 -0400 Message-ID: <9832f834c7b20b664554f4cc8090f0bf1f0a96ae.1715170671.git.richard@freakingpenguin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Authenticated-Id: richard@freakingpenguin.com Received-SPF: pass client-ip=136.175.108.151; envelope-from=richard@freakingpenguin.com; helo=mail-108-mta151.mxroute.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -4.89 X-Migadu-Queue-Id: A77FE7BD08 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -4.89 X-TUID: dJEcQcL3IeOZ doc/guix.texi (G-Expressions): Document the use of assume-valid-file-name with local-file. --- Hi Guix! I found it odd that assume-valid-file-name isn't documented in the manual. Well, now it is! doc/guix.texi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index 1c1e0164e7..221db5c022 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -12154,6 +12154,18 @@ G-Expressions absolute file name and @var{stat} is the result of @code{lstat}; exclude entries for which @var{select?} does not return true. +@var{file} can be wrapped in the @code{assume-valid-file-name} syntactic +keyword. When this is done, there will not be a warning when +@code{local-file} is used with a non-literal path. The path is still +looked up relative to the current working directory at run time. +Wrapping is done like this: + +@lisp +(define alice-key-file-path "alice.pub") +;; ... +(local-file (assume-valid-file-name alice-key-file-path)) +@end lisp + This is the declarative counterpart of the @code{interned-file} monadic procedure (@pxref{The Store Monad, @code{interned-file}}). @end deffn base-commit: da41a8f5e85774e2a507d821b5d52e600fb9d1d7 -- 2.41.0