From 439dea1b198a9edd384e3b9763a9c5672ce62b67 Mon Sep 17 00:00:00 2001 From: Daniel Theophanes Date: Wed, 28 Dec 2022 09:38:09 -0600 Subject: Use existing build information for version if not embedded with build script Go1.12 introduced BuildInfo which embeds build information. It does not embed build date to facilitate reproducable builds by default. If build information is embedded from build script, use the information provided by the Go build system. --- init_dir.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'init_dir.go') diff --git a/init_dir.go b/init_dir.go index 5ade692..e895f00 100644 --- a/init_dir.go +++ b/init_dir.go @@ -55,6 +55,8 @@ func isDir(dir string) error { // In reverse mode, we create .gocryptfs.reverse.conf and the directory does // not need to be empty. func initDir(args *argContainer) { + initGIT() + var err error if args.reverse { _, err = os.Stat(args.config) -- cgit v1.2.3