From f6818c2e2f8511cdd59e6254ce1936d2d82727df Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Tue, 7 Dec 2021 09:18:07 -0600 Subject: add flag and behavior for development builds --- src/slskd/Application.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/slskd/Application.cs') diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs index 856b898d..021a6c40 100644 --- a/src/slskd/Application.cs +++ b/src/slskd/Application.cs @@ -141,6 +141,12 @@ namespace slskd /// The operation context. public async Task CheckVersionAsync() { + if (Program.IsDevelopment) + { + Logger.Information("Skipping version check for Development build"); + return; + } + if (Program.IsCanary) { // todo: use the docker hub API to find the latest canary tag -- cgit v1.2.3