Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hans-brgs
Copy link
Contributor

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 hans-brgs changed the title Fix windows batfile conflict s2 Resolve .bat File Conflict by Using Unique Hash in Filename on Windows Aug 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant