From 186b35965dfe1efe35718490f4405ce24593b97c Mon Sep 17 00:00:00 2001 From: Harinn Date: Tue, 5 May 2026 15:59:30 +0700 Subject: [PATCH] gomarkdoc: disable tests --- pkgs/by-name/go/gomarkdoc/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/go/gomarkdoc/package.nix b/pkgs/by-name/go/gomarkdoc/package.nix index 1e420ffeffee..149e1cf1908f 100644 --- a/pkgs/by-name/go/gomarkdoc/package.nix +++ b/pkgs/by-name/go/gomarkdoc/package.nix @@ -21,6 +21,11 @@ buildGoModule (finalAttrs: { vendorHash = "sha256-gCuYqk9agH86wfGd7k6QwLUiG3Mv6TrEd9tdyj8AYPs="; + # Tests call gomarkdoc's main() directly, which reads GOFLAGS from the + # environment. nixpkgs sets GOFLAGS=-mod=vendor, but gomarkdoc's own flag + # parser only accepts -tags, so -mod triggers "flag provided but not defined". + doCheck = false; + ldflags = [ "-s" "-w"