Description
I am trying to do RUN npm install aws-lambda-ric@1.0.0
It fails for the following reason:
./scripts/preinstall.sh
tar: aws-lambda-cpp-0.2.6/packaging: Cannot change ownership to uid XXXX, gid XXXX.
The error appears to be when unzip aws-lambda-cpp-0.2.6 in the preinstall script.
This is not reproducible locally, but on the automatic pipleline, you can see this.
The root cause is, most of the pipelines having the limitation:
UID/GIDs that are placed on files must be in the range 0-65535
However, the uid and gid I received is uid 1515433866, gid 1896053708
.
May need to investigate what change has caused the ownership switch when installing aws-lambda-cpp
The quick workaround is to add --no-same-owner
in the tar command.
Reference: golangci/golangci-lint#752