[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50873] [PATCH 0/5] Fixes to ‘guix home import’
From: |
Ludovic Courtès |
Subject: |
[bug#50873] [PATCH 0/5] Fixes to ‘guix home import’ |
Date: |
Sat, 30 Oct 2021 16:17:02 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Hi,
Xinglu Chen <public@yoctocell.xyz> skribis:
> On Mon, Oct 11 2021, Oleg Pykhalov wrote:
>
>> Hi,
>>
>> Xinglu Chen <public@yoctocell.xyz> writes:
>>
>> […]
>>
>>> +;; Helpers for checking and generating home environments.
>>> +
>>> +(%destination-directory "/tmp/guix-config")
>>> +(mkdir-p (%destination-directory))
>>> +
>>> +(define %temporary-home-directory "/tmp/guix-home-import-test")
>>
>> Better use temporary directory like in tests/opam.scm.
>>
>> --8<---------------cut here---------------start------------->8---
>> (define-module ...
>> #:use-module ((guix build syscalls) #:select (mkdtemp!))
>> ...)
>>
>> (mkdtemp! "/tmp/guix-home-import-test.XXXXXX")
>> --8<---------------cut here---------------end--------------->8---
>
> Good idea. Out of curiosity: is there any difference between ‘mkdtemp!’
> and ‘mkdtemp’ that’s part of Guile?
‘mkdtemp’ is new in Guile 3.0.6 but Guix can be built with an older
version.
Ludo’.
[bug#50873] [PATCH 3/7] guix home: import: Fix module name for Bash service., Xinglu Chen, 2021/10/10
[bug#50873] [PATCH 2/7] guix home: import: Allow multiple modules to be imported for each service., Xinglu Chen, 2021/10/10
[bug#50873] [PATCH 4/7] guix home: import: Don’t use 'slurp-file-gexp'., Xinglu Chen, 2021/10/10
[bug#50873] [PATCH 6/7] doc: Document the ‘guix home import’ subcommand., Xinglu Chen, 2021/10/10
[bug#50873] [PATCH 5/7] guix home: import: Delete duplicate modules when importing., Xinglu Chen, 2021/10/10
[bug#50873] [PATCH v3 0/8] Fixes to ‘guix home import’, Xinglu Chen, 2021/10/30