From 1545a012cb7cd78e25ed99ecee26df457be590e9 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Tue, 10 Jan 2017 15:55:57 +0100 Subject: guix archive: Allow compilation in the absence of Guile-JSON. Fixes . Reported by Ben Woodcroft . * guix/scripts/archive.scm: Use 'module-autoload!' instead of #:use-module to (guix docker). --- guix/scripts/archive.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'guix') diff --git a/guix/scripts/archive.scm b/guix/scripts/archive.scm index 3e056fda9b..9e49c53635 100644 --- a/guix/scripts/archive.scm +++ b/guix/scripts/archive.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès +;;; Copyright © 2013, 2014, 2015, 2016, 2017 Ludovic Courtès ;;; Copyright © 2017 Ricardo Wurmus ;;; ;;; This file is part of GNU Guix. @@ -31,7 +31,6 @@ (define-module (guix scripts archive) #:use-module (guix ui) #:use-module (guix pki) #:use-module (guix pk-crypto) - #:use-module (guix docker) #:use-module (guix scripts) #:use-module (guix scripts build) #:use-module (gnu packages) @@ -46,6 +45,11 @@ (define-module (guix scripts archive) #:export (guix-archive options->derivations+files)) +;; XXX: Use this hack instead of #:autoload to avoid compilation errors. +;; See . +(module-autoload! (current-module) + '(guix docker) '(build-docker-image)) + ;;; ;;; Command-line options. -- cgit v1.2.3