Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…1009) * fix(artifact/gitrepo): resolve symlink clean error (#994) Bump `commons-io` to `2.11.0` which fixed the cleaning directory behavior when there is symlink. In the version `2.7.0` the delete directory will first check if the file exists with `Files.exists`, then issue a deleting with `File.deleteIfExists`. However when it's a symlink, the default behavior for `Files.exists` is to follow link, if the file/directory the symlink pointing to has been deleted, the symlink itself will not be deleted, this will causes error with `deleteDirectory` when there is still symlink left in the directory. In the newer version will add `NOFOLLOW_LINK` option on the `File.exists` check, therefore it will work as expected. (cherry picked from commit c2aabe6) # Conflicts: # spinnaker-dependencies/spinnaker-dependencies.gradle * fix(backport): Fixes conflict on backport --------- Co-authored-by: Wei Tie <[email protected]> Co-authored-by: Jason <[email protected]>
- Loading branch information