Move config version to version package

Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
Derek McGowan
2024-02-14 16:36:35 -08:00
parent 81965c0a57
commit a086125ae3
10 changed files with 40 additions and 31 deletions

View File

@@ -32,3 +32,9 @@ var (
// GoVersion is Go tree's version.
GoVersion = runtime.Version()
)
// ConfigVersion is the current highest supported configuration version.
// This version is used by the main configuration as well as all plugins.
// Any configuration less than this version which has structural changes
// should migrate the configuration structures used by this version.
const ConfigVersion = 3