actions / actions/toolkit

[Windows] @actions/io - io.mkdirP("D:\\") fails

Open
#848 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.