[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/11: doc: Document ‘assume-valid-file-name’ in ‘local-file’.
From: |
guix-commits |
Subject: |
08/11: doc: Document ‘assume-valid-file-name’ in ‘local-file’. |
Date: |
Sat, 25 May 2024 10:58:40 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 0efa1daad354216e9ce2adb078eb4d5254792e49
Author: Richard Sent <richard@freakingpenguin.com>
AuthorDate: Wed May 8 08:17:51 2024 -0400
doc: Document ‘assume-valid-file-name’ in ‘local-file’.
* doc/guix.texi (G-Expressions): Document the use of assume-valid-file-name
with
local-file.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Change-Id: I132f78e198cbf3ba2e5a677d671563d753de534c
---
doc/guix.texi | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/doc/guix.texi b/doc/guix.texi
index b8812cc60a..d0ce8927b4 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -12192,6 +12192,18 @@ When @var{recursive?} is true, call
@code{(@var{select?} @var{file}
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
- branch master updated (9756d9d634 -> cca25a6769), guix-commits, 2024/05/25
- 03/11: gnu: docker: Provide escape hatch in oci-container-configuration., guix-commits, 2024/05/25
- 01/11: environment: Fix type error with ‘-C’ when ‘getpwuid’ fails., guix-commits, 2024/05/25
- 02/11: services: Add restic-backup service., guix-commits, 2024/05/25
- 04/11: gnu: docker: Allow setting host environment variables in oci-container-configuration., guix-commits, 2024/05/25
- 05/11: gnu: docker: Allow setting Shepherd dependencies in oci-container-configuration., guix-commits, 2024/05/25
- 07/11: gnu: Add tests for oci-container-service-type., guix-commits, 2024/05/25
- 06/11: gnu: docker: Allow passing tarballs for images in oci-container-configuration., guix-commits, 2024/05/25
- 11/11: services: shepherd: Failure to load a service does not prevent booting., guix-commits, 2024/05/25
- 09/11: maint: Suggest ‘guix git authenticate’ for initial authentication., guix-commits, 2024/05/25
- 08/11: doc: Document ‘assume-valid-file-name’ in ‘local-file’.,
guix-commits <=
- 10/11: deduplication: Detect holes and create sparse files., guix-commits, 2024/05/25