magritte
magritte copied to clipboard
Resolve .bat File Conflict by Using Unique Hash in Filename on Windows
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:
- Modifying the .bat file name creation by incorporating a hash of the source path in the
_copy_action_windows
function. - Adjusting the related parts of the code to align with the new unique filename approach.
For further information, please consult this issue.