mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: go-github-com-mdlayher-netlink: Simplify package.
* gnu/packages/golang-web.scm (go-github-com-mdlayher-netlink) [source]<snippet>: Remove submodule with integration tests to break cycle. [arguments]<test-flags>: Move test skipping logic here. <phases>: Remove 'disable-failing-tests. Change-Id: I66e32ce985ea5162da8c7d0705207ea1d5323685
This commit is contained in:
parent
1ca59d13ca
commit
840ef02a1c
1 changed files with 10 additions and 11 deletions
|
@ -3782,21 +3782,20 @@ via REST APIs.")
|
||||||
(commit (string-append "v" version))))
|
(commit (string-append "v" version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1pxd0qn73jr9n64gkp2kd8q8x7xgssm3v8a68vkh88al55g8jkma"))))
|
(base32 "1pxd0qn73jr9n64gkp2kd8q8x7xgssm3v8a68vkh88al55g8jkma"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(snippet
|
||||||
|
#~(begin
|
||||||
|
;; Cycles with go-github-com-jsimonetti-rtnetlink.
|
||||||
|
(delete-file-recursively "internal/integration")))))
|
||||||
(build-system go-build-system)
|
(build-system go-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:import-path "github.com/mdlayher/netlink"
|
#:import-path "github.com/mdlayher/netlink"
|
||||||
#:phases
|
#:test-flags
|
||||||
#~(modify-phases %standard-phases
|
;; Test fails to start command "ip": exec: "ip": executable file not
|
||||||
(add-after 'unpack 'disable-failing-tests
|
;; found in $PATH
|
||||||
(lambda* (#:key tests? import-path #:allow-other-keys)
|
#~(list "-skip" "TestIntegrationConnSetBuffersSyscallConn")))
|
||||||
(with-directory-excursion (string-append "src/" import-path)
|
|
||||||
(substitute* (find-files "." "_test\\.go$")
|
|
||||||
;; failed to start command "ip": exec: "ip": executable file
|
|
||||||
;; not found in $PATH
|
|
||||||
(("TestIntegrationConnSetBuffersSyscallConn")
|
|
||||||
"OffTestIntegrationConnSetBuffersSyscallConn"))))))))
|
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list go-github-com-google-go-cmp
|
(list go-github-com-google-go-cmp
|
||||||
go-github-com-josharian-native
|
go-github-com-josharian-native
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue