From 9c624732e605e7e85f855e853346dd3c8c4f4ced Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean=20Fran=C3=A7ois=20CASSAN?= Date: Tue, 26 Mar 2024 14:36:52 +0100 Subject: [PATCH] Version 0.13.0 not working as expected (#200) --- cmd/shared.go | 5 +++-- docs/releases.md | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/cmd/shared.go b/cmd/shared.go index 1387c61..5352eb4 100644 --- a/cmd/shared.go +++ b/cmd/shared.go @@ -106,10 +106,11 @@ func (app *SharedFlags) Start(ctx context.Context) error { // If the client isn't yet initialized if app.Immich == nil { conf, err := configuration.Read(app.ConfigurationFile) - if err == nil { + confExist := err == nil + if confExist && app.Server == "" && app.Key == "" && app.API == "" { app.Server = conf.ServerURL - app.API = conf.APIURL app.Key = conf.APIKey + app.API = conf.APIURL } switch { diff --git a/docs/releases.md b/docs/releases.md index 9a0a35f..f1d8477 100644 --- a/docs/releases.md +++ b/docs/releases.md @@ -1,5 +1,9 @@ # Release notes +## Release 0.13.1 + +### Fix [#199](https://github.com/simulot/immich-go/issues/199) + ## Release 0.13.0 ### Improvement: [#189](https://github.com/simulot/immich-go/issues/189) Use a configuration file to store server's address and its API key