msys2 / msys2/msys2-runtime

rm: cannot remove: Invalid argument in docker volume folder

Open
#59 22 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
240
Forks
60
Avg merge
2d 3h
Merged PRs (30d)
1

Description

Setup

Dockerfile

FROM mcr.microsoft.com/windows/servercore:ltsc2019

RUN powershell iex(iwr -useb https://chocolatey.org/install.ps1)
RUN choco install msys2 -y  --params "/NoUpdate"
  • Version
> rm --version
rm (GNU coreutils) 8.32
Details
  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

CMD

  • What commands did you run to trigger this issue?
docker build -t msys-test .
docker run -it --rm -v c:\test msys-test
c:\>c:\tools\msys64\usr\bin\touch a

c:\>c:\tools\msys64\usr\bin\rm a

c:\>c:\tools\msys64\usr\bin\touch test\a

c:\>c:\tools\msys64\usr\bin\rm test\a
/usr/bin/rm: cannot remove 'test\a': Invalid argument

  • What did you expect to occur after running these commands?

rm should delete the file

  • What actually happened instead?

rm returns an error

Contributor guide

No contributing guide indexed for this repository

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

Reproduce the reported Docker build and container commands, focusing on rm of the nested test\a path in the mounted volume. Trace how the MSYS2 runtime handles that path and compare it with the successful top-level deletion. Done means rm deletes the nested file without reporting Invalid argument.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.