-
Notifications
You must be signed in to change notification settings - Fork 234
Move temp folder into repo to avoid state that causes build errors from time to time when rebuilding locally (and packages have updated) #903
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
Conversation
Should this new temp directory be added to the |
@bergmeister Would you be able to give a quick description of the kind of errors you're seeing? |
I have not recorded it but it should be somewhere in the Slack channel, multiple other people have experienced it as well where they had to delete those packages folders created by the build in the temp appdata folder. |
I occasionally get build failures that require me to remove the NuGet packages from some folder in my AppData directory before the build will succeed. |
Here is (hopefully) relevant discussion from Discord/Slack when I encountered the error: The error:
|
Sucks that the .NET API is giving us such a dud folder. I'd hope a solution to PowerShell/PowerShell#4216 doesn't have this issue. |
Even if .Net or PowerShell adds better API support for temp folders, the main point of this PR is to avoid any of that because it is effectively a global state that is causing issues and any state of a repo should be possible to be cleared with |
@bergmeister do you want to also update the Clean task to just use |
@TylerLeonhardt Good point about the |
I agree. When tools have secretly run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
We don't need to backport this since it's build related. |
Ideally, we should avoid this business and just use NuGet's global cache for that but this is a quickfix for not having to delete those folders in AppData that cause build errors when rebuilding. Now, a clean of the repo will sort this out (which is usually run when building the extension or PSES) to make those annoying local build errors disappear