From 9a2497c244f66ad328c43e81d7b214201a80bc9a Mon Sep 17 00:00:00 2001 From: Justin Hawkins Date: Sun, 26 Nov 2023 16:59:54 +1030 Subject: [PATCH] Fix bug with new config having wrong version --- CHANGELOG.md | 4 ++++ config/config.go | 2 +- main.go | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 126b39d..633dff0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. +## [v1.1.1] - 2023-11-26 + +- Fix bug where a brand-new config was created with an out-of-date version + ## [v1.1.0] - 2023-11-25 - Add feature to bulk add URL's for downloading diff --git a/config/config.go b/config/config.go index c5ed0fa..09383fc 100644 --- a/config/config.go +++ b/config/config.go @@ -98,7 +98,7 @@ func (cs *ConfigService) LoadDefaultConfig() { defaultConfig.Destinations = nil defaultConfig.DownloadOptions = make([]DownloadOption, 0) - defaultConfig.ConfigVersion = 3 + defaultConfig.ConfigVersion = 4 cs.Config = &defaultConfig diff --git a/main.go b/main.go index 7687180..25eccaa 100644 --- a/main.go +++ b/main.go @@ -15,7 +15,7 @@ import ( func main() { versionInfo := &version.Manager{ - VersionInfo: version.Info{CurrentVersion: "v1.1.0"}, + VersionInfo: version.Info{CurrentVersion: "v1.1.1"}, } log.Printf("Starting gropple %s - https://github.com/tardisx/gropple", versionInfo.GetInfo().CurrentVersion)