actions / actions/checkout

Unable to checkout repository ending in a dot on Windows

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

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
8.9k
Forks
2.8k
PR merge metrics
No merged PRs in 30d

Description

Steps to Reproduce

  • Create a repository that ends in a dot (e.g. G.A.B.R.)
  • Write a GitHub Actions workflow that uses actions/checkout and a Windows platform
  • Run the workflow

Actual Behavior

All Windows builds fail with the error along the lines of: Directory 'D:\a\G.A.B.R.\G.A.B.R.' does not exist
That's because Windows doesn't allow directories that end with a ., thus the directory is never created.

Expected Behavior

A valid working directory is picked on Windows platforms.
Maybe, if desired, a warning message is printed, indicating of the directory name mismatch, due to Windows.

Example

I created an example repository for this: G.A.B.R.
And ran GitHub Actions on two different branches:

If anyone knows a workaround, let me know. 🙂

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

No repository files or tests are named. Start by reproducing the workflow on Windows with a repository name ending in a dot, then inspect how the checkout action selects its working directory and handles repository or path names. Done means checkout succeeds with a valid Windows working directory, with any name-mismatch warning matching the expected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, typescript
Domain
ci-cd
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.