Flagsmith / Flagsmith/flagsmith-dotnet-client

Exception thrown when using SemVer operator with Semver NuGet v3.0.0

Open
#137 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
20
Forks
15
PR merge metrics
No merged PRs in 30d

Description

Given a project that is using Semver NuGet Version="3.0.0" explicitly:

.csproj
```

```

An exception is thrown by Flagsmith SDK when trying to evaluate a feature that is using this operator, locally (Local Evaluation Mode):

**How to repro**:
- Create new .NET 8.0 project (or 9.0)
- Add Semver ver 3.0.0 nuget
- Add Flagsmith 7.0.1 nuget
- Setup Flagsmith to use Local Evaluation.
- Evaluate any flag with segment override with at least one SemVer operator.

**Expected**:
Feature successfully evaluated.

**Actual**:
Exception is thrown when trying to evaluate locally.
`Failed to access feature my-feature for identity FlagsmithDemo: Method not found: 'Boolean Semver.SemVersion.op_GreaterThan(Semver.SemVersion, Semver.SemVersion)'.`

**Suggestion**:
Either upgrade to latest Semver and fix breaking changes, or better, do not use Semver, instead, implement the version comparison operators as part of the library.

The less 3rd-party NuGet being used, the less compatibility and dependency hell.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.