-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
GDPR Privacy issues with Moq, starting from version 4.20 for any contributor to the SDK #38111
Comments
Of note: https://github.com/moq/moq/pull/1375 reverted the SponsorLink change, but only because it broke builds on macOS and Linux. We can't be certain it won't be back later. |
Hi @danielmarbach. Thanks for the heads-up. Like the rest of the community, we're very concerned with the privacy implications of this change and have no plans on upgrading to a version of Moq with this behavior. We're currently locked to v4.18.2 and will stay there in the short-term. For now, we're going to monitor the conversation and the Moq project's response. Given the community reaction to the change, we're hopeful that Moq will reconsider and remove the SponsorLink functionality and any scraping of local data along with it. If we see indications that Moq intends to continue to include the functionality going forward, we'll begin exploring a move to another mocking framework without the privacy concerns. |
Hi @danielmarbach. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation. |
Is it possible that Azure team/Microsoft sponsor Moq project? I think the major problem for Moq team is that they are lacking of enough sponsorship. If there is enough sponsorship, SponsorLink project is not needed at all. |
While I love the suggestion, unfortunately, that decision is outside of my area of influence. It looks like the best path to make that inquiry would be via one of the contact methods listed on the Microsoft GitHub organization page. Tweeting |
I'd suggest Microsoft to prepare "Mingration from Moq to " guide. I've never used NSubstitute, this was just another similar library I've heard about today. But I've spent last 2 hours removing Moq and commenting out test affected classes. That reduced number of tests from circa 1100 to 700. Tomorrow we'll decide next steps. |
I also found |
@r-pankevicius I was only aware of the direct Moq reference. The thing is with the direct package reference that will overrule the transitive references that are coming from AutoFixture.AutoMoq as far as I understand since the Moq reference is in the centrally reference props file (or at least that is my limited outside view of the problem) |
@r-pankevicius: To my knowledge, there is no use of |
@jsquire No worries then, I found it in our team repo. Just wanted to spread the insight. |
@r-pankevicius You'll probably want this: <Project>
<Target Name="CheckBlockedPackages" AfterTargets="ResolvePackageDependenciesForBuild">
<Error Code="420" Text="Blocked package dependency detected: %(PackageDependencies.Identity)" Condition="'%(PackageDependencies.Identity)' == 'Devlooped.SponsorLink'" />
</Target>
</Project> |
Worth noting, 21 packages use SponsorLink package which is the core of the issue. I'd say checking the transitive dependencies would be prudent. |
Hi @danielmarbach, since you haven’t asked that we |
You might want to consider locking Moq to < 4.20 (and prevent any dependency updates) or replacing it
https://github.com/Azure/azure-sdk-for-net/blob/main/eng/Packages.Data.props#L269
as long as https://github.com/moq/moq/pull/1373 is not merged
More context in https://github.com/moq/moq/issues/1372
The text was updated successfully, but these errors were encountered: