utils: Don’t re-export ‘call-with-temporary-output-file’.
* guix/utils.scm: Remove re-export of ‘call-with-temporary-output-file’. Autoload a number of modules. * guix/download.scm, guix/import/hackage.scm, guix/import/hexpm.scm, guix/import/opam.scm, guix/import/pypi.scm, tests/cpio.scm, tests/egg.scm, tests/opam.scm, tests/publish.scm, tests/store-database.scm, tests/utils.scm: Adjust imports accordingly. Change-Id: I3f5e94631397996a30be2ea4ff8b50a3371e8ee7master
parent
6dc238f261
commit
54be7795b5
|
@ -31,7 +31,7 @@
|
|||
#:autoload (guix build download) (url-fetch)
|
||||
#:use-module (guix monads)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix utils)
|
||||
#:autoload (guix build utils) (call-with-temporary-output-file)
|
||||
#:use-module (web uri)
|
||||
#:use-module (srfi srfi-1)
|
||||
#:use-module (srfi srfi-26)
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
|
||||
;;; Copyright © 2019 Simon Tournier <zimon.toutoune@gmail.com>
|
||||
;;; Copyright © 2022 Hartmut Goebel <h.goebel@crazy-compilers.com>
|
||||
;;; Copyright © 2023 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2023-2024 Ludovic Courtès <ludo@gnu.org>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -47,7 +47,7 @@
|
|||
#:use-module (guix upstream)
|
||||
#:use-module (guix packages)
|
||||
#:autoload (guix build-system haskell) (hackage-uri)
|
||||
#:use-module ((guix utils) #:select (call-with-temporary-output-file))
|
||||
#:autoload (guix build utils) (call-with-temporary-output-file)
|
||||
#:export (%hackage-url
|
||||
hackage->guix-package
|
||||
hackage-recursive-import
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2015 Cyril Roelandt <tipecaml@gmail.com>
|
||||
;;; Copyright © 2016 David Craven <david@craven.ch>
|
||||
;;; Copyright © 2017, 2019-2021 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2017, 2019-2021, 2024 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2019 Martin Becze <mjbecze@riseup.net>
|
||||
;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||
;;; Copyright © 2020-2022 Hartmut Goebel <h.goebel@crazy-compilers.com>
|
||||
|
@ -28,10 +28,11 @@
|
|||
#:use-module ((guix build utils)
|
||||
#:select ((package-name->name+version
|
||||
. hyphen-package-name->name+version)
|
||||
dump-port))
|
||||
dump-port
|
||||
call-with-temporary-output-file))
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix upstream)
|
||||
#:use-module (guix utils)
|
||||
#:autoload (guix utils) (version>? file-sans-extension)
|
||||
#:use-module (ice-9 match)
|
||||
#:use-module (srfi srfi-1)
|
||||
#:use-module (srfi srfi-26)
|
||||
|
|
|
@ -31,7 +31,9 @@
|
|||
#:use-module ((srfi srfi-26) #:select (cut))
|
||||
#:use-module (srfi srfi-34)
|
||||
#:use-module ((web uri) #:select (string->uri uri->string))
|
||||
#:use-module ((guix build utils) #:select (dump-port find-files mkdir-p))
|
||||
#:use-module ((guix build utils)
|
||||
#:select (dump-port find-files mkdir-p
|
||||
call-with-temporary-output-file))
|
||||
#:use-module (guix build-system)
|
||||
#:use-module (guix i18n)
|
||||
#:use-module (guix diagnostics)
|
||||
|
@ -39,8 +41,7 @@
|
|||
#:use-module (guix packages)
|
||||
#:use-module (guix upstream)
|
||||
#:use-module ((guix utils) #:select (cache-directory
|
||||
version>?
|
||||
call-with-temporary-output-file))
|
||||
version>?))
|
||||
#:use-module ((guix import utils) #:select (beautify-description
|
||||
guix-hash-url
|
||||
recursive-import
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2014 David Thompson <davet@gnu.org>
|
||||
;;; Copyright © 2015 Cyril Roelandt <tipecaml@gmail.com>
|
||||
;;; Copyright © 2015-2017, 2019-2023 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2015-2017, 2019-2024 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
|
||||
;;; Copyright © 2018, 2023 Ricardo Wurmus <rekado@elephly.net>
|
||||
;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||
|
@ -52,7 +52,8 @@
|
|||
#:select ((package-name->name+version
|
||||
. hyphen-package-name->name+version)
|
||||
find-files
|
||||
invoke))
|
||||
invoke
|
||||
call-with-temporary-output-file))
|
||||
#:use-module (guix import utils)
|
||||
#:use-module (guix import json)
|
||||
#:use-module (json)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2012-2022 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2012-2022, 2024 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2013, 2014, 2015 Mark H Weaver <mhw@netris.org>
|
||||
;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
|
||||
;;; Copyright © 2014 Ian Denhardt <ian@zenhack.net>
|
||||
|
@ -47,11 +47,12 @@
|
|||
#:use-module (rnrs io ports) ;need 'port-position' etc.
|
||||
#:use-module ((rnrs bytevectors) #:select (bytevector-u8-set!))
|
||||
#:use-module (guix memoization)
|
||||
#:use-module ((guix build utils)
|
||||
#:select (dump-port mkdir-p delete-file-recursively
|
||||
call-with-temporary-output-file %xz-parallel-args))
|
||||
#:use-module ((guix build syscalls) #:select (mkdtemp! fdatasync))
|
||||
#:use-module ((guix combinators) #:select (fold2))
|
||||
#:autoload (guix build utils) (dump-port
|
||||
mkdir-p
|
||||
delete-file-recursively
|
||||
%xz-parallel-args)
|
||||
#:autoload (guix build syscalls) (mkdtemp! fdatasync)
|
||||
#:autoload (guix combinators) (fold2)
|
||||
#:use-module (guix diagnostics) ;<location>, &error-location, etc.
|
||||
#:use-module (ice-9 format)
|
||||
#:use-module ((ice-9 iconv) #:prefix iconv:)
|
||||
|
@ -76,9 +77,7 @@
|
|||
|
||||
&fix-hint
|
||||
fix-hint?
|
||||
condition-fix-hint
|
||||
|
||||
call-with-temporary-output-file)
|
||||
condition-fix-hint)
|
||||
#:export (strip-keyword-arguments
|
||||
default-keyword-arguments
|
||||
substitute-keyword-arguments
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2015, 2022 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2015, 2022, 2024 Ludovic Courtès <ludo@gnu.org>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -19,8 +19,8 @@
|
|||
(define-module (test-cpio)
|
||||
#:use-module (guix cpio)
|
||||
#:use-module (guix tests)
|
||||
#:use-module ((guix build utils) #:select (which))
|
||||
#:use-module ((guix utils) #:select (call-with-temporary-output-file))
|
||||
#:use-module ((guix build utils)
|
||||
#:select (which call-with-temporary-output-file))
|
||||
#:use-module (ice-9 match)
|
||||
#:use-module (ice-9 popen)
|
||||
#:use-module (rnrs io ports)
|
||||
|
|
|
@ -24,8 +24,9 @@
|
|||
#:use-module (gcrypt hash)
|
||||
#:use-module (guix tests)
|
||||
#:use-module ((guix build syscalls) #:select (mkdtemp!))
|
||||
#:use-module ((guix build utils) #:select (delete-file-recursively mkdir-p which))
|
||||
#:use-module ((guix utils) #:select (call-with-temporary-output-file))
|
||||
#:use-module ((guix build utils)
|
||||
#:select (delete-file-recursively mkdir-p which
|
||||
call-with-temporary-output-file))
|
||||
#:use-module (srfi srfi-1)
|
||||
#:use-module (srfi srfi-64)
|
||||
#:use-module (web uri)
|
||||
|
|
|
@ -24,8 +24,9 @@
|
|||
#:use-module (gcrypt hash)
|
||||
#:use-module (guix tests)
|
||||
#:use-module ((guix build syscalls) #:select (mkdtemp!))
|
||||
#:use-module ((guix build utils) #:select (delete-file-recursively mkdir-p which))
|
||||
#:use-module ((guix utils) #:select (call-with-temporary-output-file))
|
||||
#:use-module ((guix build utils)
|
||||
#:select (delete-file-recursively mkdir-p which
|
||||
call-with-temporary-output-file))
|
||||
#:use-module (srfi srfi-1)
|
||||
#:use-module (srfi srfi-64)
|
||||
#:use-module (web uri)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2015 David Thompson <davet@gnu.org>
|
||||
;;; Copyright © 2020 by Amar M. Singh <nly@disroot.org>
|
||||
;;; Copyright © 2016-2022 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2016-2022, 2024 Ludovic Courtès <ludo@gnu.org>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -25,7 +25,8 @@
|
|||
#:use-module (guix scripts publish)
|
||||
#:use-module (guix tests)
|
||||
#:use-module (guix config)
|
||||
#:use-module (guix utils)
|
||||
#:use-module ((guix utils) #:select (call-with-temporary-directory))
|
||||
#:use-module ((guix build utils) #:select (call-with-temporary-output-file))
|
||||
#:use-module (gcrypt hash)
|
||||
#:use-module (guix store)
|
||||
#:use-module (guix derivations)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2017, 2018, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2017-2018, 2020-2021, 2024 Ludovic Courtès <ludo@gnu.org>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -21,9 +21,9 @@
|
|||
#:use-module (guix store)
|
||||
#:use-module (guix store database)
|
||||
#:use-module (guix build store-copy)
|
||||
#:use-module ((guix utils) #:select (call-with-temporary-output-file))
|
||||
#:use-module ((guix build utils)
|
||||
#:select (mkdir-p delete-file-recursively))
|
||||
#:select (mkdir-p delete-file-recursively
|
||||
call-with-temporary-output-file))
|
||||
#:use-module (srfi srfi-26)
|
||||
#:use-module (srfi srfi-64))
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2012-2021, 2024 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
|
||||
;;; Copyright © 2016 Mathieu Lirzin <mthl@gnu.org>
|
||||
;;; Copyright © 2021 Simon Tournier <zimon.toutoune@gmail.com>
|
||||
|
@ -25,6 +25,7 @@
|
|||
(define-module (test-utils)
|
||||
#:use-module ((guix config) #:select (%gzip))
|
||||
#:use-module (guix utils)
|
||||
#:use-module ((guix build utils) #:select (call-with-temporary-output-file))
|
||||
#:use-module ((guix store) #:select (%store-prefix store-path-package-name))
|
||||
#:use-module ((guix search-paths) #:select (string-tokenize*))
|
||||
#:use-module (srfi srfi-1)
|
||||
|
|
Reference in New Issue