diff options
Diffstat (limited to 'gnu/packages/golang.scm')
-rw-r--r-- | gnu/packages/golang.scm | 54 |
1 files changed, 36 insertions, 18 deletions
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 87f259f271..a6641ba7eb 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -288,6 +288,23 @@ in the style of communicating sequential processes (@dfn{CSP}).") (strip-keyword-arguments '(#:tests? #:system) (package-arguments go-1.4)) ((#:phases phases) `(modify-phases ,phases + ;; Time bomb in TLS tests: "Most of the test certificates + ;; (e.g. testRSACertificate, testRSACertificateIssuer, + ;; testRSA2048CertificateIssuer) have a not after of Jan 1 + ;; 00:00:00 2025 GMT." + ;; https://github.com/golang/go/issues/71077 + ;; https://github.com/golang/go/issues/71103 + ;; https://github.com/golang/go/issues/71104 + (add-after 'unpack 'skip-crypto-tls-tests + (lambda _ + (substitute* (list "src/crypto/tls/handshake_client_test.go" + "src/crypto/tls/handshake_server_test.go") + (("TestVerifyConnection.*" all) + (string-append all "\n t.Skip(\"golang.org/issue/71077\")\n")) + (("TestResumptionKeepsOCSPAndSCT.*" all) + (string-append all "\n t.Skip(\"golang.org/issue/71077\")\n")) + (("TestCrossVersionResume.*" all) + (string-append all "\n t.Skip(\"golang.org/issue/71077\")\n"))))) (add-after 'unpack 'remove-unused-sourcecode-generators (lambda _ ;; Prevent perl from inclusion in closure through unused files @@ -518,6 +535,25 @@ in the style of communicating sequential processes (@dfn{CSP}).") (setenv "GOROOT_FINAL" (string-append output "/lib/go")) (setenv "GOGC" "400") (setenv "GOCACHE" "/tmp/go-cache")))) + + ;; Time bomb in TLS tests: "Most of the test certificates + ;; (e.g. testRSACertificate, testRSACertificateIssuer, + ;; testRSA2048CertificateIssuer) have a not after of Jan 1 + ;; 00:00:00 2025 GMT." + ;; https://github.com/golang/go/issues/71077 + ;; https://github.com/golang/go/issues/71103 + ;; https://github.com/golang/go/issues/71104 + (add-after 'unpack 'skip-crypto-tls-tests + (lambda _ + (substitute* (list "src/crypto/tls/handshake_client_test.go" + "src/crypto/tls/handshake_server_test.go") + (("TestVerifyConnection.*" all) + (string-append all "\n t.Skip(\"golang.org/issue/71077\")\n")) + (("TestResumptionKeepsOCSPAndSCT.*" all) + (string-append all "\n t.Skip(\"golang.org/issue/71077\")\n")) + (("TestCrossVersionResume.*" all) + (string-append all "\n t.Skip(\"golang.org/issue/71077\")\n"))))) + (add-after 'unpack 'patch-source (lambda* (#:key inputs outputs #:allow-other-keys) (let* ((net-base (assoc-ref inputs "net-base")) @@ -841,24 +877,6 @@ in the style of communicating sequential processes (@dfn{CSP}).") #~(modify-phases #$phases (delete 'skip-TestGoPathShlibGccgo-tests) (delete 'patch-source) - ;; Time bomb in TLS tests: "Most of the test certificates - ;; (e.g. testRSACertificate, testRSACertificateIssuer, - ;; testRSA2048CertificateIssuer) have a not after of Jan 1 - ;; 00:00:00 2025 GMT." - ;; https://github.com/golang/go/issues/71077 - ;; https://github.com/golang/go/issues/71103 - ;; https://github.com/golang/go/issues/71104 - (add-after 'unpack 'skip-crypto-tls-tests - (lambda _ - (substitute* (list "src/crypto/tls/handshake_client_test.go" - "src/crypto/tls/handshake_server_test.go") - (("TestVerifyConnection.*" all) - (string-append all "\n t.Skip(\"golang.org/issue/71077\")\n")) - (("TestResumptionKeepsOCSPAndSCT.*" all) - (string-append all "\n t.Skip(\"golang.org/issue/71077\")\n")) - (("TestCrossVersionResume.*" all) - (string-append all "\n t.Skip(\"golang.org/issue/71077\")\n"))))) - (add-after 'unpack 'patch-os-tests (lambda _ (substitute* "src/os/os_test.go" |