magritte icon indicating copy to clipboard operation
magritte copied to clipboard

Resolve .bat File Conflict by Using Unique Hash in Filename on Windows

Open hans-brgs opened this issue 1 year ago • 0 comments

Resolve .bat File Conflict by Using Unique Hash in Filename on Windows

This commit fixes the conflict encountered during the build process on Windows systems. The error was caused by multiple actions attempting to write to the same .bat file.

The solution implemented avoids this conflict by introducing a unique hash into the filename of the .bat file for each action. This ensures that each action writes to a unique file, allowing actions to be executed concurrently without any conflicting writes to the same file, and enabling a smooth build process.

The change includes:

  1. Modifying the .bat file name creation by incorporating a hash of the source path in the _copy_action_windows function.
  2. Adjusting the related parts of the code to align with the new unique filename approach.

For further information, please consult this issue.

hans-brgs avatar Aug 09 '23 20:08 hans-brgs