-
Notifications
You must be signed in to change notification settings - Fork 386
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
[BUG] 6.0.1 requires dotnetsdk 8 but doesn't say that #1625
Comments
Thank you for reporting. I used the coverlet HelloWord example and the test was executed successfully. The .NET SDK 8.0 was installed. |
Same problem here.. All our CI pipelines are failing because we are adding coverlet.collector dynamically to our test solutions via dotnet add package. @Bertk the hello world example still uses dotnet add package will install version 6.0.1 (a patch update that must not contain breaking changes according to SemVer) and this package does not include any dependency to system.text.json at all. |
Have same issue. We're using .NET 6 SDK and have |
Sorry, I missed the to update the version. @MarcoRossignoli @daveMueller We should update the version to |
Another idea: "SuppressDependenciesWhenPacking" is set on the collector - effectively hiding all dependencies. Would it be possible to pack these two required package references as dependencies instead or something similar? |
@Bertk would it be also possible to release 6.0.2 with reverted changes? |
@SeWieland Thank you for the hint but coverlet.collector package has no dependencies. The dilemma is the support for framework net6.0, net7.0 and net8.0 and this works with the latest packages for <PackageReference Include="System.Reflection.Metadata" VersionOverride="8.0.0" />
<PackageReference Include="System.Collections.Immutable" VersionOverride="8.0.0" /> |
Why? we bump the patch we will bump the minor if we ship a new feature and a major if we do breaking change. |
@MarcoRossignoli coverlet 6.0.1 is a bugfix version but requires a .NET 8.0 SDK. semver 2.0 has this paragraph
|
IMHO if there is support for .NET 6.0 it now has dependencies. If I have to pin other packages to a specific version for coverlet to be compatible, that package is a depdendency... Therefore, right now my workaround is to pin coverlet to v6.0.0 in all .NET 6 projects. |
Doesnt matter what u target or if u declare a dependency or not...u now require system.text.json 8 in 6.0.1…when u used to NOT..just cause u do not claim a dependendency doesnt mean u dont have one. in fact by not claiming a dependency u seem to have..u’ve made yourself backwards incompatible. So let me be clearer..i think its a mistake to require json 8 and think you should revert that change back to (i think it was 3.1) unless u require some functionality in json 8. Thats wouldnbe the better solution IMO. If u MUST use json 8 you should bump a major version since users bow need it to implicitly be present or declare that dependency. i too must pin to 6.0.0 when using sdk 6 |
I saw now what you mean https://github.com/coverlet-coverage/coverlet/pull/1601/files#diff-1d12ae6a5243ca16cfc9b56abc8423c15a917dd1adcdc3d7dd3482ccff2208da this was wrong... @Bertk @daveMueller we cannot declare >= 6.0 and insert non 6 lib...this needs to be fixed. |
I have the same issue. Works well with the coverlet.collector Version="6.0.0". But when upgraded to the coverlet.collector Version="6.0.1", it failed.
|
I suggest to release 6.0.2 with that fix ASAP. |
Just experienced the same issue in one of our builds where it is unable to find |
Hi @Bertk, can you please confirm, did you decide to keep .NET 8 for this and further versions yes? |
It's fixed here #1628 cc: @daveMueller |
Ah I see, thanks for heads up! Hope NuGet repo will be updated soon |
hope we see a release soon |
When do you expect to have a new version released with the issue solved? |
* Split CI into 2 jobs. One for build and test and another for codescanning Downgrade coverlet to workaround issue coverlet-coverage/coverlet#1625
Hi guys, we finally merged everything we broke with the last release. We would really appreciate if someone could give it a try. |
It is working now. |
We now have a new official release |
Describe the bug
Had a build tied to 6.* for a version using sdk 6 and it failed with
To Reproduce
build with dotnet6
Expected behavior
Expect coverlet to run and report successfully
Actual behavior
fails to generate report
Configuration (please complete the following information):
Please provide more information on your .NET configuration:
* Which coverlet package and version was used?
* reproduceable with 6.0.1
* Which version of .NET is the code running on?
* 6.0.x (tried a few versions...all reproduced)
* What OS and version, and what distro if applicable?
* window 10 and linux ubuntu (whatever azdo is using now a days)
* What is the architecture (x64, x86, ARM, ARM64)?
* x64
* Do you know whether it is specific to that configuration?
* seems not to be
Additional context
the changes in this PR #1601 seems to force having dotnet 8 installed so that thinks like System.Text.Json will load the 8.0 version from the shared framework.
doesn't appear to be any
overall, seems like mistake to break backwards compatability between 6.0.0 and 6.0.1 like this...doesn't seem to match semver...but maybe that was your intent? understand 6 is EOL at end of year so we should be moving to 8 sdk soon...
The text was updated successfully, but these errors were encountered: