From 13c3e68726304e895cc3da44ed74af0088558269 Mon Sep 17 00:00:00 2001 From: Sam Estep Date: Tue, 2 Jun 2026 13:10:39 -0400 Subject: [PATCH] scaleway-cli: disable time-dependent test Assisted-by: Claude:opus-4.8 (cherry picked from commit 2f198588314d8e31079822a87aa6c854e90ca5ba) --- pkgs/by-name/sc/scaleway-cli/package.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/by-name/sc/scaleway-cli/package.nix b/pkgs/by-name/sc/scaleway-cli/package.nix index 717d9e9117e4b..d283c7a4133dc 100644 --- a/pkgs/by-name/sc/scaleway-cli/package.nix +++ b/pkgs/by-name/sc/scaleway-cli/package.nix @@ -29,6 +29,16 @@ buildGoModule rec { doCheck = true; + checkFlags = [ + # This subtest hardcodes a go-humanize relative-time string ("35 years ago") + # for a fixed 1990 date instead of computing it, so it breaks once enough + # wall-clock time passes (now "36 years ago"). go-humanize truncates the + # elapsed time by a fixed 360-day year (Year = 12*Month, Month = 30*Day), so + # diff/Year rolled 35 -> 36 on 2026-05-12. Upstream keeps bumping the + # literal by hand rather than fixing it, so skip the time-dependent subtest. + "-skip=^TestMarshal/structWithMapsInSection$" + ]; + # Some tests require access to scaleway's API, failing when sandboxed preCheck = '' substituteInPlace core/bootstrap_test.go \