Skip to content

Commit

Permalink
fix: remove dependencies when parent folder is deleted (#5080)
Browse files Browse the repository at this point in the history
When a file or folder is deleted, an entry that starts with .wh is created.
Up until now, Snyk detected files that were deleted, but not folders.

This change adds support for deleted folders by checking whether a file path starts with the path of the deleted folder. Meaning if we know that "/app/dependencies" was deleted, then a file path like "/app/dependencies/jar/library.jar" will be marked as deleted as well.
  • Loading branch information
SteveShani committed Mar 5, 2024
1 parent 9f4d512 commit 4f892f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"semver": "^6.0.0",
"snyk-config": "^5.0.0",
"snyk-cpp-plugin": "2.24.0",
"snyk-docker-plugin": "6.10.3",
"snyk-docker-plugin": "6.10.4",
"snyk-go-plugin": "1.23.0",
"snyk-gradle-plugin": "4.1.0",
"snyk-module": "3.1.0",
Expand Down

0 comments on commit 4f892f7

Please sign in to comment.