Skip to content

Helix SDK should support artifact directories with unix permissions #6183

@davidwrighton

Description

@davidwrighton
  • This issue is causing unreasonable pain

The Helix sdk uses Zip files to package up contents when passing a directory into Helix. Unfortunately on Unix platforms this causes issues when there are native executables in the payload. In particular, the permissions on the various files are lost when packaged as a zip file. The helix runtime supports handling a tarball, which would be more suitable than the current Zip file approach.

Recently as part of (dotnet/runtime#42049), I ran into this issue, and while the suggested solution was to write a script which ran chmod to fix the various executables I instead chose to manually launch tar from the msbuild logic that was invoking the sdk, and then used the PayloadArchive feature to send the payload instead of PayloadDirectory. However, looking through our usage of Helix this problem is common, and there are many ad hoc solutions involving chmod. It would be much more reasonable to have some notation that caused the SDK to use tar, and sidestep this entire problem for future infrastructure needs.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions