help-guix
[Top][All Lists]
Advanced

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

Re: Newbie: Why using "guix edit" opens read-only files in /gnu/store?


From: Vagrant Cascadian
Subject: Re: Newbie: Why using "guix edit" opens read-only files in /gnu/store?
Date: Sat, 24 Jun 2023 20:50:25 -0700

On 2023-06-25, Rodrigo Morales wrote:
> From what I understand, no file in `/gnu/store' can be edited by any
> user. My question is: Isn't the purpose of `guix edit' edit package
> definitions? Then, why when `guix edit <<package>>' is executed, a file
> under /gnu/store is shown? For the record, I just executed `guix edit
> emacs' and the file
> /gnu/store/nxy09dxmm23krdgszgww2v80v8bkcll5-guix-module-union/share/guile/site/3.0/gnu/packages/emacs.scm
> was opened.

It is certainly confusing, and has come a few times. It would be more
ideal to copy that file somewhere where it can be edited than trying to
edit the file in the store directly.

It is still useful when building from git, as described in:

  https://guix.gnu.org/en/manual/devel/en/guix.html#Building-from-Git

Then this should work more-or-less as one might expect:

  ./pre-inst-env guix edit PACKAGE


live well,
  vagrant

Attachment: signature.asc
Description: PGP signature


reply via email to

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