Skip to content

Commit

Permalink
chore: Upgrade to .NET 8.x framework.
Browse files Browse the repository at this point in the history
Signed-off-by: Philip Conrad <[email protected]>
  • Loading branch information
philipaconrad committed Nov 18, 2024
1 parent 5b66fe0 commit 7ec0dc5
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: "6.0.x"
dotnet-version: "8.0.x"
- name: Install dependencies
run: dotnet restore
- name: Build
Expand All @@ -101,7 +101,7 @@ jobs:
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: "6.0.x"
dotnet-version: "8.0.x"
- name: Install dependencies
run: dotnet restore
- name: Test
Expand Down
16 changes: 8 additions & 8 deletions Styra/Opa/OpaClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,9 @@ private async Task<T> queryMachineryDefault<T>(Input input)
throw new Exception("Impossible error");
}
}
catch (ClientError ce)
catch (ClientError)
{
throw ce; // Rethrow for the caller to deal with. Request was malformed.
throw; // Rethrow for the caller to deal with. Request was malformed.
}
catch (BatchServerError bse)
{
Expand All @@ -267,9 +267,9 @@ private async Task<T> queryMachineryDefault<T>(Input input)
var res = await evalPolicySingle(path, Input.CreateMapOfAny(value));
successResults.Add(key, (OpaResult)res.SuccessfulPolicyResponse!);
}
catch (ClientError ce)
catch (ClientError)
{
throw ce; // Rethrow for the caller to deal with. Request was malformed.
throw; // Rethrow for the caller to deal with. Request was malformed.
}
catch (Styra.Opa.OpenApi.Models.Errors.ServerError se)
{
Expand Down Expand Up @@ -373,9 +373,9 @@ private async Task<T> queryMachineryDefault<T>(Input input)
throw new Exception("Impossible error");
}
}
catch (ClientError ce)
catch (ClientError)
{
throw ce; // Rethrow for the caller to deal with. Request was malformed.
throw; // Rethrow for the caller to deal with. Request was malformed.
}
catch (BatchServerError bse)
{
Expand All @@ -402,9 +402,9 @@ private async Task<T> queryMachineryDefault<T>(Input input)
var res = await evalPolicySingle(path, Input.CreateMapOfAny(value));
successResults.Add(key, convertResult<T>(res.SuccessfulPolicyResponse!.Result!));
}
catch (ClientError ce)
catch (ClientError)
{
throw ce; // Rethrow for the caller to deal with. Request was malformed.
throw; // Rethrow for the caller to deal with. Request was malformed.
}
catch (Styra.Opa.OpenApi.Models.Errors.ServerError se)
{
Expand Down
2 changes: 1 addition & 1 deletion Styra/Opa/Styra.Opa.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<PackageId>Styra.Opa</PackageId>
<Version>1.3.6</Version>
<Authors>Styra</Authors>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<PackageReadmeFile>README.md</PackageReadmeFile>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
Expand Down
4 changes: 2 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "6.0.0",
"version": "8.0.0",
"rollForward": "latestMinor"
}
}
}
2 changes: 1 addition & 1 deletion test/SmokeTest.Tests/SmokeTest.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

Expand Down

0 comments on commit 7ec0dc5

Please sign in to comment.