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

Fix dotnet version #445

Merged
merged 1 commit into from
Jan 17, 2025
Merged

Fix dotnet version #445

merged 1 commit into from
Jan 17, 2025

Conversation

julienp
Copy link
Contributor

@julienp julienp commented Jan 16, 2025

With the update to Ubuntu 24.04 for the runners, the preinstalled .NET versions have changed. This revealed some issues with how we select the .NET version to use in the matrix tests. The actions/setup-dotnet action does install the version we want, but the dotnet command still use the runner’s default version.

We have to create a global.json to make it use the desired version.

https://github.com/actions/setup-dotnet?tab=readme-ov-file#matrix-testing

@julienp julienp added the impact/no-changelog-required This issue doesn't require a CHANGELOG update label Jan 16, 2025
@julienp julienp force-pushed the julienp/fix-dotnet-version branch 6 times, most recently from 5750489 to e483bef Compare January 16, 2025 13:19
The `actions/setup-dotnet` action does install the version we want, but the dotnet command still use the runner’s default version.

We have to create a `global.json` to make it use the desired version.

https://github.com/actions/setup-dotnet?tab=readme-ov-file#matrix-testing
@julienp julienp force-pushed the julienp/fix-dotnet-version branch from e483bef to 2ad8f4c Compare January 16, 2025 14:16
@@ -46,40 +46,40 @@ public override Task<ParameterizeResponse> Parameterize(ParameterizeRequest requ

public override Task<GetSchemaResponse> GetSchema(GetSchemaRequest request, CancellationToken ct)
{
var schema = """
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Raw strings """...""" were introduced in C# 11, however .NET 6.0 only supports up to C# 10. Convert this to use verbatim strings @"...", which unfortunately require double quoting quotes.

@julienp julienp marked this pull request as ready for review January 16, 2025 15:27
@julienp julienp requested a review from a team as a code owner January 16, 2025 15:27
@julienp julienp enabled auto-merge January 17, 2025 11:44
@julienp julienp added this pull request to the merge queue Jan 17, 2025
Merged via the queue into main with commit c0cf4c4 Jan 17, 2025
19 checks passed
@julienp julienp deleted the julienp/fix-dotnet-version branch January 17, 2025 12:21
julienp added a commit that referenced this pull request Jan 21, 2025
Follow up to #445, which fixed CI on the latest ubuntu runners, but missed the release job.
julienp added a commit that referenced this pull request Jan 21, 2025
Follow up to #445, which fixed CI on the latest ubuntu runners, but missed the release job.
github-merge-queue bot pushed a commit that referenced this pull request Jan 21, 2025
Follow up to #445, which
fixed CI on the latest ubuntu runners, but missed the release job.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/no-changelog-required This issue doesn't require a CHANGELOG update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants