From 22a2fac22973caabad9ee7d4b4c485844cf458f7 Mon Sep 17 00:00:00 2001 From: Florian Bernd Date: Mon, 17 Feb 2025 13:24:06 +0100 Subject: [PATCH] Fix CI --- build/scripts/Versioning.fs | 2 +- .../_Shared/Core/EnumValueParser.cs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/build/scripts/Versioning.fs b/build/scripts/Versioning.fs index 4b27be22871..a3b9d7f2c07 100644 --- a/build/scripts/Versioning.fs +++ b/build/scripts/Versioning.fs @@ -17,7 +17,7 @@ module Versioning = // Since that file is now generated by the dotnet tooling and GitVersion and similar tooling all still have // active issues related to dotnet core, we now just burn this info in global.json - let parse (v:string) = SemVer.parse(v) + let parse (v: string) = SemVer.parse(if String.IsNullOrEmpty(v) then "1.0.0" else v) //Versions in form of e.g 6.1.0 is inferred as datetime so we bake the json shape into the provider like this type SdkVersion = { version:string; rollForward:string; allowPrerelease:bool } diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Core/EnumValueParser.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Core/EnumValueParser.cs index df936fbc2d4..0e5e1a821e1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Core/EnumValueParser.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Core/EnumValueParser.cs @@ -1,3 +1,7 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. + #if !NET5_0_OR_GREATER using System.Linq; #endif