Build: Unable to delete directory 'packages'
Closed this issue · 6 comments
I am trying to build this project on IntelliJ IDEA 2021.1.3 on Windows 11.
Unable to delete directory 'D:\files\src\pacmc\packages'
Failed to delete some children. This might happen because a process has files open or has its working directory set in the target directory.
- D:\files\src\pacmc\packages\aur\pacmc\.SRCINFO
- D:\files\src\pacmc\packages\aur\pacmc
- D:\files\src\pacmc\packages\aur
Weird, maybe it does have something to do with that you did just clone the repository into D:\files\
and another process is active there?
I delete this line of code in build.gradle.kts. Works fine for me.
workingDir("packages/aur/pacmc/")
The packages
directory inside the root directory of the project contains some git submodules which you do not have access to, but I do not see why Gradle would try to "delete" the directory.
Temporary fix with faf592b
but I don't know how it will behave if someone on arch who does not have permission is trying to build the project
Tested and works great for me. 👍
Now using the Gradle task avoidance API, meaning that it should be fixed in a non-temporary way.