Aws-cdk: [aws-lambda-python] Building fails: cp: preserving times for ‘/asset-output/.’: Operation not permitted for Python 3.8 runtime

Created on 14 Aug 2020  Â·  2Comments  Â·  Source: aws/aws-cdk

In order to fix #9324 , the bundling image used by aws-lambda-python now uses cp instead of rsync (which was not present in the container) to copy assets to the output folder. However, now I'm getting the following error:

cp: preserving times for ‘/asset-output/.’: Operation not permitted

Reproduction Steps

Same as before.

Environment

  • CLI Version: 1.58.0:
  • Framework Version: 1.58.0
  • Node.js Version: 13.11.0
  • OS: Windows 10
  • Language (Version): Python (3.8.2)
@aws-cdaws-lambda-python bug efforsmall in-progress p1

All 2 comments

Did a quick test and I'm getting the same error for the Python 3.7 runtime.

@adamelmore can you please take a look?

Was this page helpful?
0 / 5 - 0 ratings