From fcb7e475f8ba3ca75cb11ffac1c6f1e6d0fe9508 Mon Sep 17 00:00:00 2001 From: Michael Simons Date: Thu, 25 May 2023 08:56:45 -0500 Subject: [PATCH] Remove unnecessary sourcelink patch (#16498) --- .../0001-command-line-api-updates.patch | 25 ------------------- 1 file changed, 25 deletions(-) delete mode 100644 src/SourceBuild/patches/sourcelink/0001-command-line-api-updates.patch diff --git a/src/SourceBuild/patches/sourcelink/0001-command-line-api-updates.patch b/src/SourceBuild/patches/sourcelink/0001-command-line-api-updates.patch deleted file mode 100644 index f222c0dc2..000000000 --- a/src/SourceBuild/patches/sourcelink/0001-command-line-api-updates.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Michael Simons -Date: Fri, 27 Jan 2023 17:50:38 +0000 -Subject: [PATCH] command-line-api updates - -Updates necessary to build with the command-line-api version included in source-build. - -Backport: https://github.com/dotnet/sourcelink/issues/945 ---- - src/dotnet-sourcelink/Program.cs | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/dotnet-sourcelink/Program.cs b/src/dotnet-sourcelink/Program.cs -index 0803734..9affcf5 100644 ---- a/src/dotnet-sourcelink/Program.cs -+++ b/src/dotnet-sourcelink/Program.cs -@@ -64,7 +64,7 @@ private static string GetSourceLinkVersion() - - private static RootCommand GetRootCommand() - { -- var authArg = new Option(new[] { "--auth", "-a" }, "Authentication method").FromAmong(AuthenticationMethod.Basic); -+ var authArg = new Option(new[] { "--auth", "-a" }, "Authentication method").AcceptOnlyFromAmong(AuthenticationMethod.Basic); - var userArg = new Option(new[] { "--user", "-u" }, "Username to use to authenticate") { Arity = ArgumentArity.ExactlyOne }; - var passwordArg = new Option(new[] { "--password", "-p" }, "Password to use to authenticate") { Arity = ArgumentArity.ExactlyOne }; -