aws / aws-lambda-builders

Python library to compile, build & package AWS Lambda functions for several runtimes & framework
Apache License 2.0
333 stars 137 forks source link

fix: Symlinks to non-existent directories, symlinks re-creating #578

Closed mildaniel closed 9 months ago

mildaniel commented 9 months ago

Issue #, if available: N/A

Description of changes: There are two scenarios fixed by this PR:

  1. The symbolic link action attempts to link to a non-existent directory. This results in an error when executing sam package.
  2. The symbolic link utility function attempts to link to an already created directory resulting in an error when using auto-dependency layer.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.