From a5a9008de29579abca16b067e0803f02bd52680b Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Fri, 3 Feb 2023 14:32:35 -0500 Subject: [PATCH] Add .v1 to file suffix of JSON files If we add fields in the future this will make it clear that old files don't have the new fields --- monitor/process.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor/process.go b/monitor/process.go index f5597b1..b59788a 100644 --- a/monitor/process.go +++ b/monitor/process.go @@ -113,7 +113,7 @@ func processCertificate(ctx context.Context, config *Config, entry *logEntry, ce notifiedPath = filepath.Join(prefixPath, "."+hexFingerprint+".notified") cert.CertPath = filepath.Join(prefixPath, hexFingerprint+".pem") - cert.JSONPath = filepath.Join(prefixPath, hexFingerprint+".json") // TODO-3: consider using .v1.json extension in case I change the format later? + cert.JSONPath = filepath.Join(prefixPath, hexFingerprint+".v1.json") cert.TextPath = filepath.Join(prefixPath, hexFingerprint+".txt") if err := cert.save(); err != nil {