Skip to content

Revert "Issue8273 corrupt nu get cache (#8275)"#8686

Merged
JaynieBai merged 2 commits intodotnet:vs17.6from
Forgind:revert-copy-through-symlink-fix
Apr 23, 2023
Merged

Revert "Issue8273 corrupt nu get cache (#8275)"#8686
JaynieBai merged 2 commits intodotnet:vs17.6from
Forgind:revert-copy-through-symlink-fix

Conversation

@Forgind
Copy link
Copy Markdown
Contributor

@Forgind Forgind commented Apr 20, 2023

This reverts commit a93882f.

This is a 17.6 fix for #8684

The 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 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.

It also 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. We will attempt to fix again in a later release.

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 fails.

Risk

Minimal (straight revert of the commit that caused the bug)

@ghost
Copy link
Copy Markdown

ghost commented Apr 20, 2023

Hello! I noticed that you're targeting one of our servicing branches. Please consider updating the version.

Copy link
Copy Markdown
Member

@JanKrivanek JanKrivanek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean revert - looks good

@JanKrivanek JanKrivanek added the merge-when-branch-open PRs that are approved, except that there is a problem that means we are not merging stuff right now. label Apr 21, 2023
@JaynieBai JaynieBai merged commit f6feb85 into dotnet:vs17.6 Apr 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-when-branch-open PRs that are approved, except that there is a problem that means we are not merging stuff right now. Servicing-approved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants