Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C#: Verify that downloaded .NET CLIs are executable #18570

Merged
merged 2 commits into from
Jan 27, 2025

Conversation

hvitved
Copy link
Contributor

@hvitved hvitved commented Jan 23, 2025

When downloading (older) versions of the .NET CLI, we can sometimes run into issues where the downloaded files are not executable. For example, attempting to run .NET 3 on Ubuntu 24.04 results in this error

Couldn't find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support.

The fix suggested by this PR is to extend downloading to also include a verification step, where we check that running dotnet --info exits cleanly.

@github-actions github-actions bot added the C# label Jan 23, 2025
@hvitved hvitved force-pushed the csharp/dotnet3-integration-test branch 3 times, most recently from ae4f069 to 1c98b29 Compare January 24, 2025 11:59
@hvitved hvitved force-pushed the csharp/dotnet3-integration-test branch from 1c98b29 to ac4f82c Compare January 24, 2025 14:15
@hvitved hvitved changed the title C#: Add .NET 3 integration test C#: Verify that downloaded .NET CLIs are executable Jan 24, 2025
Copy link
Contributor

@tamasvajk tamasvajk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks plausible to me.

@hvitved hvitved marked this pull request as ready for review January 27, 2025 08:15
@hvitved hvitved requested a review from a team as a code owner January 27, 2025 08:15
@hvitved hvitved merged commit f75ecdb into github:main Jan 27, 2025
17 checks passed
@hvitved hvitved deleted the csharp/dotnet3-integration-test branch January 27, 2025 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants