mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: go-github-com-elliotchance-orderedmap: Remove submodule.
* gnu/packages/golang-xyz.scm (go-github-com-elliotchance-orderedmap) [arguments]<#:phases>: Add 'remove-submodule phase to reduce amount of data copied to the store, the submodule "v2" is packed separately as it has it's own go.mod file. (go-github-com-elliotchance-orderedmap-v2)[arguments]<#:phases>: Delete 'remove-submodule phase. Change-Id: Ie68ca24752a612864a4c6ca8537949a922528d82
This commit is contained in:
parent
5b841a42fb
commit
0214076086
1 changed files with 8 additions and 1 deletions
|
@ -2159,6 +2159,10 @@ program's running, don't expect consistent results between platforms
|
||||||
#:unpack-path "github.com/elliotchance/orderedmap"
|
#:unpack-path "github.com/elliotchance/orderedmap"
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'remove-submodule
|
||||||
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
||||||
|
(with-directory-excursion (string-append "src/" import-path)
|
||||||
|
(delete-file-recursively "v2"))))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key tests? import-path #:allow-other-keys)
|
(lambda* (#:key tests? import-path #:allow-other-keys)
|
||||||
(when tests?
|
(when tests?
|
||||||
|
@ -2192,7 +2196,10 @@ O(1) for @code{Set}, @code{Get}, @code{Delete} and @code{Len}.")
|
||||||
(arguments
|
(arguments
|
||||||
(substitute-keyword-arguments
|
(substitute-keyword-arguments
|
||||||
(package-arguments go-github-com-elliotchance-orderedmap)
|
(package-arguments go-github-com-elliotchance-orderedmap)
|
||||||
((#:import-path _) "github.com/elliotchance/orderedmap/v2")))))
|
((#:import-path _) "github.com/elliotchance/orderedmap/v2")
|
||||||
|
((#:phases _ '%standard-phases)
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(delete 'remove-submodule)))))))
|
||||||
|
|
||||||
(define-public go-github-com-emersion-go-ical
|
(define-public go-github-com-emersion-go-ical
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue