Our project makes use of local NPM packages, such as:
"dependencies": {
...
"node-ci": "./submodules/node-ci",
...
}
This creates a shortcut in Windows in the node_modules folder that links to the actual package (see below):
Our pipeline build runs through and completes, but errors out and leaves the runner in an unhealthy state because it tries to delete both folders and fails:
[2025-01-10 11:19:49,974] An error occurred whilst tearing down directories.
java.nio.file.NoSuchFileException: C:\Users\...\atlassian-bitbucket-pipelines-runner\bin\..\temp\5acf5a6b-f269-50f7-b1a5-9e66afd53479\1736525790831\build\node_modules\node-ci
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
.....
[2025-01-10 11:19:49,974] Cancelling timeout
[2025-01-10 11:19:49,974] Updating runner state to "UNHEALTHY".
[2025-01-10 11:19:50,146] Completing step with result Result{status=FAILED, error=Some(Error{key='runner.working-directory-teardown-error', message='An error occurred while attempting to clean the build folder. Check the runner logs and manually clean up the build folder on the host machine to fix this issue.', arguments={}})}.
This pretty much eliminates our ability to utilize pipelines. Is there a known workaround?