From 57038b42b2da515a13ad13d7a3f260681858fbc0 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 9 Sep 2025 10:54:30 +0100 Subject: [PATCH] gnu: go-github-com-shirou-gopsutil-v3: Update to 3.24.5. * gnu/packages/golang-xyz.scm (go-github-com-shirou-gopsutil-v3): Update to 3.24.5. [arguments] : Fix it according to go.mod. : Remove 'remove-failing-tests, utilize "-skip" instead. : Skip 2 failing tests. Change-Id: Ie172872815fb2371f02123e9743dfa370f7c2541 --- gnu/packages/golang-xyz.scm | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 7589f11e25a42f7bc86bd2271fd78049b0ec8303..ec470dde0889c4f614d897abbaeb5091c103befe 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -18072,7 +18072,7 @@ sensors).") (package (inherit go-github-com-shirou-gopsutil) (name "go-github-com-shirou-gopsutil-v3") - (version "3.24.2") + (version "3.24.5") (source (origin (method git-fetch) @@ -18081,19 +18081,14 @@ sensors).") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1xlfcx6giqaxdah2m02q2i8ynwlzar953wr8wqx1j3004xdgaivd")))) + (base32 "1r561fs7q2m0m03k8yrx3dpldjik3vbfjyfz0lz90zz0xvbavkxm")))) (arguments (list - #:import-path "github.com/shirou/gopsutil" - #:phases - #~(modify-phases %standard-phases - (add-before 'check 'remove-failing-tests - (lambda* (#:key import-path #:allow-other-keys) - (delete-file-recursively - ;; host_test.go tries to access files such as - ;; /var/run/utmp that do not exist in the build - ;; environment. - (string-append "src/" import-path "/host/host_test.go"))))))))) + #:import-path "github.com/shirou/gopsutil/v3" + ;; Two tests fail: + ;; 1. error open /var/run/utmp: no such file or directory + ;; 2. PlatformInformation() returns empty: + #:test-flags #~(list "-skip" "TestUsers|TestPlatformInformation"))))) (define-public go-github-com-shurcool-sanitized-anchor-name (package