1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-15 20:25:17 +03:00
aports/testing/recyclarr-cli/0001-disable-gitversion.patch
2023-03-01 13:51:56 +01:00

34 lines
1.4 KiB
Diff

From 60400049b548fbfa8635aec5a2a8e2aa8efc2a3f Mon Sep 17 00:00:00 2001
From: Fabricio Silva <hi@fabricio.dev>
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<ILogger>();
- _log.Debug("Recyclarr Version: {Version}", GitVersionInformation.InformationalVersion);
+ _log.Debug("Recyclarr Version: {Version}");
_tasks = _scope.Resolve<IOrderedEnumerable<IBaseCommandSetupTask>>().ToArray();
_tasks.ForEach(x => x.OnStart());