cake-build / resources

Contains different kind of resources such as bootstrappers and configuration files.
MIT License
54 stars 79 forks source link

Force was needed here to properly clean up the folder #77

Closed TylerLeonhardt closed 4 years ago

TylerLeonhardt commented 4 years ago

Was attempting to move https://github.com/OmniSharp/csharp-language-server-protocol over to the new build.ps1 and noticed that this throws a bunch of:

Remove-Item : You do not have sufficient access rights to perform this operation or the item is hidden, system, or read only.
At /Users/tyleonha/Code/CSharp/csharp-language-server-protocol/build.ps1:179 char:9
+         Remove-Item -Recurse
+         ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : PermissionDenied: (/Users/tyleonha/Cod….9.3/.signature.p7s:FileInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : RemoveFileSystemItemUnAuthorizedAccess,Microsoft.PowerShell.Commands.RemoveItemCommand

when trying to remove things from the tools dir. Adding a -Force so that this clean up actually works properly.

Roadrunner67 commented 4 years ago

Do you have an idea why files in the tools folder are readonly?

TylerLeonhardt commented 4 years ago

Sadly I do not - this could very well be a case of "only on my machine"... however, I can say that when I originally made this script xplat, I was testing with a much simpler cake project than the one I ran this with.

devlead commented 4 years ago

@TylerLeonhardt your changes have been merged, thanks for your contribution 👍