guix/gnu
Ludovic Courtès 2a8b9e980f
describe: Define and use ‘modules-from-current-profile’.
Fixes <https://issues.guix.gnu.org/75458>.

Fixes a bug whereby bootloader, image, platform, etc. modules would be
searched for in locations other than the current profile, possibly leading to
incompatible files being loaded.  More generally, this bug would break
statelessness: depending on what happens to be available in $GUILE_LOAD_PATH,
some modules would or would not be loaded.

* guix/describe.scm (modules-from-current-profile): New procedure.
* gnu/bootloader.scm (bootloader-modules): Use it instead of ‘all-modules’.
* gnu/system/image.scm (image-modules): Likewise.
(not-config?): Rename to…
(neither-config-nor-git?): … this, and add (guix git).  Adjust users.
* guix/import/utils.scm (build-system-modules): Likewise.
* guix/platform.scm (platform-modules): Likewise.
* guix/upstream.scm (importer-modules): Likewise.

Change-Id: I8ac55a5bcdf54990665c70d0aa558b9b2c2548d4
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Merges: #4859
2026-01-13 21:07:08 +01:00
..
bootloader
build image: Use unshare to map root user for btrfs 2026-01-12 10:56:38 +01:00
home services: configuration: Generalize 'list-of-packages?' 2026-01-09 15:22:44 +01:00
installer installer: Add Hurd x86_64 as an option. 2026-01-12 22:50:51 +01:00
machine
packages gnu: libunistring: Resurrect cross-build for MinGW. 2026-01-13 21:07:08 +01:00
services services: radicale: add shepherd configuration action 2026-01-09 15:22:45 +01:00
system describe: Define and use ‘modules-from-current-profile’. 2026-01-13 21:07:08 +01:00
tests tests: mail: Add Radicale test. 2026-01-09 15:22:45 +01:00
artwork.scm
bootloader.scm describe: Define and use ‘modules-from-current-profile’. 2026-01-13 21:07:08 +01:00
ci.scm
compression.scm
home.scm
image.scm
installer.scm installer: Drop uri from provenance log. 2025-12-22 23:00:46 +01:00
local.mk gnu: hurd: Fix select for streamio. 2026-01-13 21:07:07 +01:00
machine.scm
packages.scm
services.scm
system.scm system: operating-system-etc-service: Unset GUIX_PROFILE. 2026-01-04 12:13:29 +01:00
tests.scm