Extracting premake-5.0.0-beta2-linux.tar.gz will break the ownership of the extract target dir
Before opening a new bug report, please read Reporting Bugs and consider if this is something you can contribute yourself. If this a new bug, help us help you by filling in the template below.
What seems to be the problem?
The premake-5.0.0-beta2-linux.tar.gz includes "." in its files, extracting it with tar will set the permission and owner of the directory accidentally. If you extracted at the root dir like me, you will found your root dir got own by some other user, and ssh won't let you connect to this server.
Authentication refused: bad ownership or modes for directory /root
What did you expect to happen?
What have you tried so far?
How can we reproduce this?
https://github.com/mercury233/test-premake/actions/runs/3141390884/jobs/5103770163#step:2:4
As you can see, the permission of test-ownership changed from 0755/drwxr-xr-x to 0700/drwx------ after extracting.
What version of Premake are you using?
Anything else we should know?
@nickclark2016 looks like the packaging script might need some modification? Probably needs to execute the packing step outside of the folder with the Premake executable, instead of inside it.
Looks like the macOS archive might have the same problem. Additionally, the Linux binary is a -dev build not a -beta2 build, I imagine the macOS binary is the same?