From 76e5f1f55e5aa0b102d06c9d465b8f98490480a8 Mon Sep 17 00:00:00 2001 From: Rohit Nayak Date: Sun, 15 Dec 2024 16:33:56 +0100 Subject: [PATCH] Ignore missing files for sed check Signed-off-by: Rohit Nayak --- go/cmd/internal/docgen/docgen.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/go/cmd/internal/docgen/docgen.go b/go/cmd/internal/docgen/docgen.go index 13da886b318..0079ecee56c 100644 --- a/go/cmd/internal/docgen/docgen.go +++ b/go/cmd/internal/docgen/docgen.go @@ -201,6 +201,9 @@ func anonymizeHomedir(file string) (err error) { if err != nil { return err } + if _, err := os.Stat(file); err != nil { + return nil + } // We're replacing the stuff inside the square brackets in the example sed // below: