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

WireMock.NET TestContainer Dependency Constraint Issue #1176

Closed
Xor-el opened this issue Sep 19, 2024 · 3 comments
Closed

WireMock.NET TestContainer Dependency Constraint Issue #1176

Xor-el opened this issue Sep 19, 2024 · 3 comments
Assignees
Labels

Comments

@Xor-el
Copy link

Xor-el commented Sep 19, 2024

Describe the bug

WireMock.Net.Testcontainers 1.6.3 has a hard version dependency constraint on TestContainer 3.9.0 making it difficult to update both TestContainer and WireMock.Net.Testcontainers to their latest version in a project that uses both.

Expected behavior:

I should be able to update the packages to their latest versions without issues.

Test to reproduce

try updating the nuget packages in the project below to their latest versions

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net8.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>

  <ItemGroup>
    <!--<PackageReference Include="Testcontainers" Version="3.10.0" />-->
    <PackageReference Include="Testcontainers.MsSql" Version="3.9.0" />
    <PackageReference Include="WireMock.Net.Testcontainers" Version="1.5.62" />
  </ItemGroup>

</Project>

Other related info

referencing the latest TestContainer nuget package (3.10.0 at this time) directly in our project works albeit with some warnings.
unfortunately, this doesn't work for us as we have a strict policy where we treat Warnings as Errors.

@Xor-el Xor-el added the bug label Sep 19, 2024
@StefH StefH self-assigned this Sep 20, 2024
@StefH
Copy link
Collaborator

StefH commented Sep 20, 2024

@Xor-el
I'll check if I can remove the hard dependency on the version from TestContainer.

@Xor-el
Copy link
Author

Xor-el commented Sep 20, 2024

Thanks, @StefH very much appreciated.

@StefH
Copy link
Collaborator

StefH commented Sep 20, 2024

#1177

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants