[Windows] @actions/io - io.mkdirP("D:\\") fails
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5.9k
- Forks
- 1.8k
- PR merge metrics
- No merged PRs in 30d
Description
Recently updated an @actions/io dependency from 1.0.2 to 1.1.1.
On Windows, the following did not throw an error on 1.0.2, but does throw an error on 1.1.1
io.mkdirP("D:\\")
As a long time Windows user (and now WSL2/Ubuntu), I understand that Windows disks are not the same as directories (creation or removal), but *nix users using mkdirP (same as mkdir -p) may not expect the failure...
So I'm undecided about whether this is a bug or not, but it might be considered a breaking change...
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the @actions/io mkdirP entry point and reproduce io.mkdirP("D:\") on Windows using versions 1.0.2 and 1.1.1. Determine the intended behavior for a Windows drive root, then verify the agreed behavior with a regression check.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100