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:
Sharlatan Hellseher 2024-09-04 10:04:10 +01:00
parent 5b841a42fb
commit 0214076086
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -2159,6 +2159,10 @@ (define-public go-github-com-elliotchance-orderedmap
#:unpack-path "github.com/elliotchance/orderedmap"
#: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
(lambda* (#:key tests? import-path #:allow-other-keys)
(when tests?
@ -2192,7 +2196,10 @@ (define-public go-github-com-elliotchance-orderedmap-v2
(arguments
(substitute-keyword-arguments
(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
(package