It is still possible to unzip target/lambda/release/lambda.zip just by double-clicking on it. But extracted bootstrap will have wrong permissions in this case (-r--r--r-- so execute permission is missing):
ls -l target/lambda/release/bootstrap
-r--r--r-- 1 sdolgushev 72107521 6765776 Mar 25 09:32 target/lambda/release/bootstrap
This PR is about changing permissions for the built bootstrap file.
In the last released tag (https://github.com/softprops/serverless-rust/releases/tag/v0.3.8) integer
755
value is used https://github.com/softprops/serverless-rust/blob/c17cb6c380ee6ca5cbf441ac9df718a7325be13c/index.js#L152 Which is incorrect.In the latest master octal
0o755
value is used: https://github.com/softprops/serverless-rust/blob/master/index.js#L172But this also causes some issues. Ways to reproduce:
hello
rust lambda function:target/lambda/release/lambda.zip
usingunzip
command:target/lambda/release/lambda.zip
just by double-clicking on it. But extractedbootstrap
will have wrong permissions in this case (-r--r--r--
so execute permission is missing):The issue is fixed with this PR.