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

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

Merged
merged 2 commits into from
Apr 23, 2023

Conversation

Forgind
Copy link
Member

@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

ghost commented Apr 20, 2023

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

Copy link
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