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
This commit is contained in:
Andrew Ayer 2023-02-03 14:32:35 -05:00
parent 6848316a5b
commit a5a9008de2
1 changed files with 1 additions and 1 deletions

View File

@ -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 {