artanis
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can /tmp/cache/route.cache and other tmp dirs be moved outside project d


From: Mortimer Cladwell
Subject: Can /tmp/cache/route.cache and other tmp dirs be moved outside project directory?
Date: Mon, 22 Nov 2021 08:53:13 -0500

Hi Nala,

I have an artanis project I am trying to run from guix's /gnu/store....
I have encountered a problem where some methods e.g. (clean-stuffs) are trying to edit the store e.g.:

---------------ERROR----------------------------------------------------
In artanis/commands/work.scm:
    124:2  2 (init-work)
    120:2  1 (clean-stuffs)
In unknown file:
           0 (delete-file "/gnu/store/3jbsa6x6wk8g3pzcz59v6abyh4ai8r?")

ERROR: In procedure delete-file:
In procedure delete-file: Read-only file system
--------------END ERROR----------------------------------------------------------

Problem is /gnu/store.... is read only.
Any way to move the tmp directory outside of the store? I can envision an artanis.conf parameter "temp-dir" that redirects to e.g. /tmp/cache... or maybe $HOME/tmp/cache...

Also something like modify
(define route-cache (string-append (current-toplevel) "/tmp/cache/route.cache"))
to
(define route-cache  "/tmp/cache/route.cache")

Looking for some input as to where the changes need to be e.g. is it safe to globally modify current-toplevel e.g. current-toplevel == "" or
current-toplevel == $HOME?
Has anyone had success running an artanis project from /gnu/store...?
Thanks
Mortimer

reply via email to

[Prev in Thread] Current Thread [Next in Thread]