8000 Close before remove fixes #2233 by popey · Pull Request #2657 · anchore/grype · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Close before remove fixes #2233 #2657

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 13, 2025
Merged

Conversation

popey
Copy link
Contributor
@popey popey commented May 13, 2025

Windows appears to require temporary files to be closed before they are removed.

With these changes, the Windows-specific issue described in Grype issue #2233 should be resolved.

I tested doing this on a GitHub Windows runner.

Before

https://github.com/popey/grype/actions/runs/14994111094/job/42124162010

[0000] ERROR failed to remove file error=remove C:\Users\RUNNER~1\AppData\Local\Temp\grype-db-listing182438887: The process cannot access the file because it is being used by another process. file=C:\Users\RUNNER~1\AppData\Local\Temp\grype-db-listing182438887
Vulnerability database updated to latest version!

After

https://github.com/popey/grype/actions/runs/14997189770/job/42134575718

Vulnerability database updated to latest version!

Signed-off-by: Alan Pope <alan.pope@anchore.com>
@popey popey force-pushed the fix-win-temp-files branch from 9107584 to fffcd81 Compare May 13, 2025 13:32
Signed-off-by: Keith Zantow <kzantow@gmail.com>
@kzantow kzantow force-pushed the fix-win-temp-files branch from ec9af87 to 92b9ed2 Compare May 13, 2025 15:38
@kzantow kzantow enabled auto-merge (squash) May 13, 2025 15:41
@kzantow kzantow merged commit 335da00 into anchore:main May 13, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Removal of temporary files not working on Windows
2 participants
0