diff --git a/edgelet/build/linux/package-mariner.sh b/edgelet/build/linux/package-mariner.sh index e53856e02c3..d9b981d1b27 100755 --- a/edgelet/build/linux/package-mariner.sh +++ b/edgelet/build/linux/package-mariner.sh @@ -103,6 +103,7 @@ cargo vendor vendor # Purge Cargo.lock files from dependencies. These files are not necessary and will cause # Component Governance to incorrectly scan them for issues. find "$CARGO_HOME/registry/src/" -name "Cargo.lock" -exec echo "Deleting {}" \; -exec rm {} \; +find "${BUILD_REPOSITORY_LOCALPATH}/vendor/" -name "Cargo.lock" -exec echo "Deleting {}" \; -exec rm {} \; # Configure Cargo to use vendored the deps mkdir .cargo