jakobkmar / pacmc

An easy-to-use package manager (and soon to be launcher) for Minecraft mods.
GNU Affero General Public License v3.0
122 stars 9 forks source link

Build: Unable to delete directory 'packages' #9

Closed WordlessEcho closed 3 years ago

WordlessEcho commented 3 years ago

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
jakobkmar commented 3 years ago

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?

WordlessEcho commented 3 years ago

I delete this line of code in build.gradle.kts. Works fine for me.

workingDir("packages/aur/pacmc/")
jakobkmar commented 3 years ago

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.

jakobkmar commented 3 years ago

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

WordlessEcho commented 3 years ago

Tested and works great for me. 👍

jakobkmar commented 3 years ago

Now using the Gradle task avoidance API, meaning that it should be fixed in a non-temporary way.