This is an automated email from the ASF dual-hosted git repository.
kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new d9e672f40e GH-35060: [C#][CI] Update dotnet download link regex
(#35061)
d9e672f40e is described below
commit d9e672f40e831dd8f6a73a21b3a9bebfc35c5a45
Author: Jacob Wujciak-Jens <[email protected]>
AuthorDate: Wed Apr 12 08:20:21 2023 +0200
GH-35060: [C#][CI] Update dotnet download link regex (#35061)
The download page changed and the existing regex was not correctly catching
the link. This seems overall pretty brittle but it seems there is no better way
to download the file directly.
* Closes: #35060
Authored-by: Jacob Wujciak-Jens <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
---
dev/release/verify-release-candidate.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dev/release/verify-release-candidate.sh
b/dev/release/verify-release-candidate.sh
index 8248cdbba1..779e71a381 100755
--- a/dev/release/verify-release-candidate.sh
+++ b/dev/release/verify-release-candidate.sh
@@ -366,8 +366,8 @@ install_csharp() {
local
dotnet_download_thank_you_url=https://dotnet.microsoft.com/download/thank-you/dotnet-sdk-${dotnet_version}-${dotnet_platform}-x64-binaries
local dotnet_download_url=$( \
curl -sL ${dotnet_download_thank_you_url} | \
- grep 'window\.open' | \
- grep -E -o '[^"]+' | \
+ grep 'directLink' | \
+ grep -E -o 'https://download[^"]+' | \
sed -n 2p)
mkdir -p ${csharp_bin}
curl -sL ${dotnet_download_url} | \