canonical / craft-parts

https://canonical-craft-parts.readthedocs-hosted.com
GNU Lesser General Public License v3.0
11 stars 37 forks source link

Permission changes in files are not detected #311

Open facundobatista opened 1 year ago

facundobatista commented 1 year ago

When permissions are changed on a file, that file is not detected as "updated", and not re processed by the pull part.

Example using charmcraft:

$ charmcraft clean           
Cleaning project 'my-super-charm'.
Cleaned project 'my-super-charm'.
$ charmcraft pack
Packing the charm
Created 'my-super-charm_ubuntu-22.04-amd64.charm'.
Charms packed:
    my-super-charm_ubuntu-22.04-amd64.charm
$ zipinfo -l my-super-charm_ubuntu-22.04-amd64.charm to_be_included.bin
-rw-rw-r--  2.0 unx      163 b-      105 defN 21-Aug-03 12:20 to_be_included.bin
$ chmod -w to_be_included.bin
$ ll to_be_included.bin
-r--r--r-- 1 facundo facundo 163 ago  3  2021 to_be_included.bin
$ charmcraft pack
Packing the charm
Created 'my-super-charm_ubuntu-22.04-amd64.charm'.
Charms packed:
    my-super-charm_ubuntu-22.04-amd64.charm
$ zipinfo -l my-super-charm_ubuntu-22.04-amd64.charm to_be_included.bin
-rw-rw-r--  2.0 unx      163 b-      105 defN 21-Aug-03 12:20 to_be_included.bin
syncronize-issues-to-jira[bot] commented 5 months ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-2963.

This message was autogenerated