(address . bug-guix@gnu.org)
Hi,
when system guix produced by the guix-for-channels procedure is
installed, modules in any channel (except in the 'guix) will shadow the
same modules acquired via `guix pull'.
Steps to reproduce:
Have a channels.scm:
Toggle snippet (11 lines)
(cons (channel
(name 'nonguix)
(url "https://gitlab.com/nonguix/nonguix")
(introduction
(make-channel-introduction
"897c1a470da759236cc11798f4e0a5f7d4d59fbc"
(openpgp-fingerprint
"2A39 3FFF 68F4 EF7A 3D29 12AF 6F51 20A0 22FB B2D5"))))
%default-channels)
Pull it, and reconfigure you system using it. After that is done, try
to search for `nongnu/packages/linux.scm' in the path using `guix repl':
Toggle snippet (5 lines)
scheme@(guix-user)> ,use (gnu)
scheme@(guix-user)> (search-path %load-path "nongnu/packages/linux.scm")
$1 = "/gnu/store/svds1ak4zxdnb5sim3h45q5gk7rzqdr0-nonguix/share/guile/site/3.0/nongnu/packages/linux.scm"
Notice that the file is located in `/gnu/store/*-nonguix/...'.
Now reconfigure your system with the following modify-services:
Toggle snippet (16 lines)
(modify-services %base-services
(guix-service-type
config => (guix-configuration
(inherit config)
(guix (guix-for-channels
(cons (channel
(name 'nonguix)
(url "https://gitlab.com/nonguix/nonguix")
(introduction
(make-channel-introduction
"897c1a470da759236cc11798f4e0a5f7d4d59fbc"
(openpgp-fingerprint
"2A39 3FFF 68F4 EF7A 3D29 12AF 6F51 20A0 22FB B2D5"))))
%default-channels))))))
After you reconfigure you system, try to search for the same file again:
Toggle snippet (5 lines)
scheme@(guix-user)> ,use (gnu)
scheme@(guix-user)> (search-path %load-path "nongnu/packages/linux.scm")
$1 = "/run/current-system/profile/share/guile/site/3.0/nongnu/packages/linux.scm"
Notice that this time it is located in `/run/current-system/...'.
The implication is that any pull of the channels takes no effect, since
the system-wide shadows them.
Have a nice day,
Tomas
--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
-----BEGIN PGP SIGNATURE-----
iQJCBAEBCgAsFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmc57dQOHH5Ad29sZnNk
ZW4uY3oACgkQL7/ufbZ/walI3A//RVz1XvWdugWw4lJUdMIAWOAJXbdFagHxW2U2
7qb6NCgPkuQwBT4coNKxt4qVvs9U/DNzYCEPOSzJCda9PCwFsx48IJKIaLEXaLKQ
qtVL/UAhQAcW01WMIiKfKV6D0DuLuFtFNYaP4qtJ7OqI4U6ZCLeVqX7RWreWTa8a
hH3yKYwPrANMQP9eUkIFC/wEMvU4fWsrsas8qjbx1Bgub7msdcG3DF57E9oQkZHE
EJwcOYZYNU7bVH4FtLZuQ+13VONWrwtptoMDJTj9ou3Ve9VmApsiTZpY/r3MTSf6
in3CWkg9dAJqti8f04yEWCVGRHuncYcQhIQnvhOD2oxtyS1C5LIwKdTmZRG4kPT3
0SrAGK78gadC7nRWARwx13EBFwAnJSLrQtQQPf4TEHdOqLeOiUJSBpILmUKuCPR1
01YoQak3RXrV963UB4iu1jtrCq4osyO+ILo7rK5kjkQ3uAjL9W0uRiaYEpzEadwq
MzNVoEDPI03dckPynP88XKuV+8WbpkcZmRUs3EMA31NUVwBo6f7yy38SbnjntOmW
daW6bctihjEPNKVSq6IoT+oUM3fQiG4Ph+69vnGfBTGkDWxI9nOCMQ/MDkC0iw/e
WxWKGuDwIfI9tQtN5sHz0qog1yX84Ji1BfTJH/JeLZhAwJ63dKVfwck2aJJkza10
cY8myKQ=
=LHEn
-----END PGP SIGNATURE-----