all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* "guix-latest" differs when two users run "guix pull" from same commit
@ 2017-11-15 22:58 Chris Marusich
  2017-11-16 16:08 ` Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: Chris Marusich @ 2017-11-15 22:58 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 1912 bytes --]

Hi,

When two users run "guix pull" using the same commit, two different
versions of "guix-latest" get built.  This surprised me, and in any case
it seems inefficient to build the same version of Guix two times.  Why
do two different derivations get built?

Here's an invocation of "guix pull" as an unprivileged user:

--8<---------------cut here---------------start------------->8---
$ guix pull
...
Building from Git commit ed0f9f53abef57b9f33d3b2eada40375894bdff6...
...
The following derivation will be built:
   /gnu/store/m3x8069x5aspc29m9ay7idndz0kpfxlb-guix-latest.drv
copying and compiling to '/gnu/store/dn13gs9w16h5w6l77pnpbclqxnbyhh4m-guix-latest' with Guile 2.2.2...
--8<---------------cut here---------------end--------------->8---

And here's an invocation of "guix pull" as root:

--8<---------------cut here---------------start------------->8---
# guix pull
...
Building from Git commit ed0f9f53abef57b9f33d3b2eada40375894bdff6...
...
The following derivation will be built:
   /gnu/store/675pz9f4qz9dd4jikzcgzv62kjrxfhmg-guix-latest.drv
copying and compiling to '/gnu/store/cvc0rf65s3mjw9rjps80ram3898qdws3-guix-latest' with Guile 2.2.2...
--8<---------------cut here---------------end--------------->8---

I am surprised that these two invocations of "guix pull" build different
derivations.  I understand that the overall "guix pull" action requires
side effects outside of the store which will be different depending on
who invoked the command (e.g., to update the $HOME/.config/guix/latest
symlink), but that stuff isn't performed by a derivation.  I expect two
derivations that build Guix (or any software component) from the same
source to be identical, so I am surprised.

I have looked at the source code for "guix pull," and I cannot find any
obvious reason why the derivations should differ.  Does anyone know why
they differ?

-- 
Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-01-08 15:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-15 22:58 "guix-latest" differs when two users run "guix pull" from same commit Chris Marusich
2017-11-16 16:08 ` Ludovic Courtès
2017-11-22  3:53   ` Chris Marusich
2017-12-08  6:57     ` Chris Marusich
2017-12-08 10:44       ` Ludovic Courtès
2018-01-07  2:17       ` Mike Gerwitz
2018-01-08 15:37         ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.