-
Notifications
You must be signed in to change notification settings - Fork 40
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
[🐛] Sync function does not delete shallow clones #435
Comments
hi @crashboogie could you please share how you are running this? Standalone binary or npm etc. If relevant please also share the Node.js version you are running this on. Thanks |
@lili2311 Thanks for the reply! I'm using the 2.16.3 Alpine standalone binary |
Could you try grabbing the latest released version https://github.com/snyk-tech-services/snyk-api-import/releases? It has some retries for deletion, I don't have high hopes it will help Node.js should have been able to delete this directory no problem on Node.js 12. Locally the Node.js 12 tests are passing. Does this happen every time or only sometimes? |
I did actually try to use the latest release locally on my Linux system prior to using the Alpine binary, and it gave the same error when running there with v18.13.0 of Node. and it does happen every time on my end for either the Alpine or other release. |
The packaged binaries come with a Node 12 version pre-bundled already, if you are able to try the |
we have same issue on release used run as: logs:
|
Expected behaviour
Sync function should delete the shallow clonses from the /tmp directory when finished analyzing.
Actual behaviour
snyk:clone-and-analyze Failed to delete /tmp/snyk-clone- Error was Error: ENOTEMPTY: directory not empty, rmdir '/tmp/snyk-clone-'
Steps to reproduce
/usr/local/bin/snyk-api-import sync --orgPublicId= --source=github
Debug log
See above in Actual behaviour
The text was updated successfully, but these errors were encountered: