You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Revert "Issue8273 corrupt nu get cache (#8275)" (#8686)
This reverts commit a93882f.
This is a temporary fix for #8684
The current plan is to revert #8275 in 17.6, as it caused some difficulties, and try to bring it back in 17.7 via #8685.
Summary
#8275 fixed a longstanding confusing and unfortunate behavior in MSBuild in which passing the Copy task a symlink as its destination would copy the source file onto the destination of the symlink rather than overwriting the symlink. Unfortunately, it also introduced a new issue in which copying a file onto itself could often just delete the file instead of copying anything. Customers reported this issue.
Customer Impact
Projects that copy a file onto itself using the Copy task without passing identical paths for source and destination instead delete the file without necessarily even logging an error.
Regression?
Yes, from #8275.
Testing
Unit tests and manually tested that the repro described in #8684 no longer works.
Risk
Minimal (straight revert of the commit that caused the bug)
---------
Co-authored-by: Forgind <[email protected]>
Copy file name to clipboardExpand all lines: eng/Versions.props
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the MIT license. See License.txt in the project root for full license information. -->
0 commit comments