From 60400049b548fbfa8635aec5a2a8e2aa8efc2a3f Mon Sep 17 00:00:00 2001 From: Fabricio Silva Date: Tue, 28 Feb 2023 20:01:50 +0000 Subject: [PATCH] Disable GitVersion GitVersion is a dependency that needs git history to return the current version. APKBUILD does not provide git history. Disable it and replace version in prepare() step. --- src/Recyclarr.Cli/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Recyclarr.Cli/Program.cs b/src/Recyclarr.Cli/Program.cs index 1db4f70..ef8ffc9 100644 --- a/src/Recyclarr.Cli/Program.cs +++ b/src/Recyclarr.Cli/Program.cs @@ -41,7 +41,7 @@ internal static partial class Program config.Settings.StrictParsing = true; config.SetApplicationName("recyclarr"); - // config.SetApplicationVersion("v1.2.3"); + config.SetApplicationVersion("{Version}"); var interceptor = new CliInterceptor(logLevelSwitch, appDataPathProvider); interceptor.OnIntercepted.Subscribe(_ => OnAppInitialized()); @@ -82,7 +82,7 @@ internal static partial class Program } _log = _scope.Resolve(); - _log.Debug("Recyclarr Version: {Version}", GitVersionInformation.InformationalVersion); + _log.Debug("Recyclarr Version: {Version}"); _tasks = _scope.Resolve>().ToArray(); _tasks.ForEach(x => x.OnStart());