From 6872c2ed1255dd4b23db036e301a6579e30efb71 Mon Sep 17 00:00:00 2001 From: Guilherme Puida Date: Thu, 2 May 2024 16:26:40 -0300 Subject: [PATCH] Don't include timestamp in generated manpages (#405) This makes manpage generation reproducible. --- internal/command/man.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/command/man.go b/internal/command/man.go index 401d0915..52720329 100644 --- a/internal/command/man.go +++ b/internal/command/man.go @@ -6,6 +6,10 @@ import ( ) func manCommand(root *cobra.Command) *cobra.Command { + // Do not include timestamp in generated man pages. + // See https://github.com/spf13/cobra/issues/142 + root.DisableAutoGenTag = true + cmd := &cobra.Command{ Use: "man -o ", Short: "Generate manual pages for all dasel subcommands",