`npm test` crashes on Windows machines (test/run.sh b0rks)
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 194
- Avg merge
- 22h 43m
- Merged PRs (30d)
- 10
Description
This happens while the Microsoft TypeScript repo gets cloned in the script: when the repo is extracted git fails due to multiple files existing in paths which are 'too long'.
part of what's shown on console:
```
error: unable to create file tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.json: Filename too long
error: unable to create file tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt: Filename too long
error: unable to create file tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.errors.txt: Filename too long
error: unable to create file tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.json: Filename too long
error: unable to create file tests/baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory.sourcemap.txt: Filename too long
```
The fix is to git clone into a /tmp/xyz directory and then move what we need in here (./test/data/...)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in test/run.sh and trace the clone and extraction steps for the Microsoft TypeScript repository. Reproduce the Windows failure, then verify that cloning into a temporary /tmp/xyz directory and moving the needed files into ./test/data allows npm test to complete without filename-too-long errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, shell, typescript
- Domain
- testing-qa, tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 52/100