felangel / mason

Tools which allow developers to create and consume reusable templates called bricks.

Home Page:https://docs.brickhub.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fix: mason bundle doesnt keep filesystem permissions of incldued files

renancaraujo opened this issue · comments

Description

On POSIX systems, when one of the files to be included on a brick has an execute permission, that permission is lost after brick generation.

Steps To Reproduce

  1. Create a brick containing a file with an execute permission (chmod +x)
  2. Install it globally mason add -g brick_name --path .
  3. Run the brick mason make brick_name
  4. Attest that no generated file has execute permission

Expected Behavior

File permissions are maintained.