-
Notifications
You must be signed in to change notification settings - Fork 293
File Permissions are not preserved #233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
In a nutshell, the permissions were getting stripped because an older zip library didn't save them, and JSZip 3.x solved the issue. |
Could you share your |
Here is a bit more context (sorry for the bare comment before, I didn't know if this had an easy fix): Versions:
package:
individually: true
plugins:
- serverless-python-requirements
custom:
pythonRequirements:
dockerizePip: true The function in particular has a
And the function contains a directory structure:
In the project this has the permissions:
However, I noticed on running
|
I'm seeing this issue when trying to run awscli (to use the The permissions for the I tested by running local permissions: ➜ ls -alh ./.serverless/requirements/bin/
total 208
drwxr-xr-x 29 bspink staff 928B 15 Mar 11:20 .
drwxr-xr-x 31 bspink staff 992B 15 Mar 11:20 ..
-rwxr-xr-x 1 bspink staff 822B 15 Mar 11:20 aws
-rwxr-xr-x 1 bspink staff 1.4K 15 Mar 11:20 aws.cmd
-rwxr-xr-x 1 bspink staff 204B 15 Mar 11:20 aws_bash_completer
-rwxr-xr-x 1 bspink staff 1.1K 15 Mar 11:20 aws_completer
-rwxr-xr-x 1 bspink staff 1.8K 15 Mar 11:20 aws_zsh_completer.sh lambda permissions: drwxrwxr-x 3 root root 573 Mar 15 00:03 .
drwxr-xr-x 23 root root 740 Mar 15 00:04 ..
-rw-rw-r-- 1 root root 822 Jan 1 2098 aws
-rw-rw-r-- 1 root root 204 Jan 1 2098 aws_bash_completer
-rw-rw-r-- 1 root root 1.4K Jan 1 2098 aws.cmd
-rw-rw-r-- 1 root root 1.2K Jan 1 2098 aws_completer
-rw-rw-r-- 1 root root 1.8K Jan 1 2098 aws_zsh_completer.sh |
I'm running a python function that calls a binary that ships within an individually packaged module. However, when packaged, the file's permissions as an executable are not transferred (they are preserved without this plugin). Any ideas as to how to debug this? I'd be happy to submit a PR but I can't figure out where in the process these permissions would be getting stripped.
The text was updated successfully, but these errors were encountered: