Skip to content

Commit 22a2fac

Browse files
committed
Fix CI
1 parent d1c651e commit 22a2fac

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

build/scripts/Versioning.fs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module Versioning =
1717
// Since that file is now generated by the dotnet tooling and GitVersion and similar tooling all still have
1818
// active issues related to dotnet core, we now just burn this info in global.json
1919

20-
let parse (v:string) = SemVer.parse(v)
20+
let parse (v: string) = SemVer.parse(if String.IsNullOrEmpty(v) then "1.0.0" else v)
2121

2222
//Versions in form of e.g 6.1.0 is inferred as datetime so we bake the json shape into the provider like this
2323
type SdkVersion = { version:string; rollForward:string; allowPrerelease:bool }

src/Elastic.Clients.Elasticsearch/_Shared/Core/EnumValueParser.cs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Licensed to Elasticsearch B.V under one or more agreements.
2+
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3+
// See the LICENSE file in the project root for more information.
4+
15
#if !NET5_0_OR_GREATER
26
using System.Linq;
37
#endif

0 commit comments

Comments
 (0)