jeremiah-c-leary / vhdl-style-guide

Style guide enforcement for VHDL
GNU General Public License v3.0
192 stars 39 forks source link

VSG changing file permissions #1286

Open ALL-SPACE-Anuj opened 3 weeks ago

ALL-SPACE-Anuj commented 3 weeks ago

Environment VHDL Style Guide (VSG) version: 3.26.0 Rocky Linux 8.9

Describe the bug Permissions of files change after running VSG.

To Reproduce Run VSG Check changes to permissions with git. You should see the permissions change to "-rwxr-x---"

Expected behavior Expected no change to permissions.

jeremiah-c-leary commented 5 days ago

Morning @ALL-SPACE-Anuj ,

I ran a test case on a file

$ ls -lart deleteme.vhd
-rw-r--r-- 1 jcleary jcleary 14 Nov 10 08:05 deleteme.vhd

with the following command cp deleteme.vhd deleteme2.vhd;vsg -f deleteme2.vhd --fix and I get the following:

$ ls -lart deleteme*.vhd
-rw-r--r-- 1 jcleary jcleary 14 Nov 10 08:05 deleteme.vhd
-rw-r--r-- 1 jcleary jcleary 14 Nov 10 08:08 deleteme2.vhd

I'm wondering if your umask is forcing the change in file permissions.

--Jeremy