-
Notifications
You must be signed in to change notification settings - Fork 587
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Removal of temporary files not working on Windows #2233
Comments
Thanks for the issue report @Joerki and the steps to reproduce, that's very helpful. I have reproduced the issue here on Windows 11 Home 22H3 with Git 2.47.0.windows.2
|
@jdanielp Thanks for the confirmation. I have also managed to see this in a bog-standard Windows Command Prompt window on Windows 10, in a VM. So it's very much a Windows issue, and likely not Git Bash, you're right. |
@popey If you need any help from me to test/verify/etc please let me know. It sounds like you have a reproducible environment but I'm happy to help if you need it. |
Don't know if it helps, but I am throwing in a bump here because I am running into exactly the same issue. Tried switching the temp file location to another customer location on my C-drive, but it still won't remove that listing file. |
What happened:
Hi guys!
When I use grype with Git Bash on Windows grype has trouble to remove files and directories:
(Yes, the filename seems to be incomplete)
Files and (empty) directories stay in temp directory. I see grype-db-listing* and grype-scratch* relics there. (* are several digits each)
I don't see this error when I use cmd.
What you expected to happen:
Grype erases temporary date even if (Git) Bash is used on Windows as shell.
How to reproduce it (as minimally and precisely as possible):
Use Git Bash instead of cmd for grype operations.
Anything else we need to know?:
Environment:
Output of
grype version
:$ grype version
Application: grype
Version: 0.83.0
BuildDate: 2024-10-28T21:54:11Z
GitCommit: 0602464
GitDescription: v0.83.0
Platform: windows/amd64
GoVersion: go1.23.2
Compiler: gc
Syft Version: v1.15.0
Supported DB Schema: 5
OS (e.g:
cat /etc/os-release
or similar):Windows 11 23H2
Git 2.47.0.2
The text was updated successfully, but these errors were encountered: