Azure / Azure/azure-functions-core-tools

`func`, `gozip`, (maybe more) are missing executable permissions in released zip

Open
#3,252 3 comments 0 reactions 0 assignees View on GitHub
area: build/release bug good first issue platform: linux
Dominant language
C#
Stars
1.5k
Forks
498
Avg merge
4d 20h
Merged PRs (30d)
14

Description

reproduction:

```bash
wget https://github.com/Azure/azure-functions-core-tools/releases/download/4.0.4915/Azure.Functions.Cli.linux-x64.4.0.4915.zip
unzip *.zip
./func
```

output:
```console
$ ...
$ ./func
bash: ./func: Permission denied
```

workaround is pretty simple, just `chmod +x func gozip` -- though the zip should have the proper permissions to start with!

Contributor guide

Open the contributing guide

Research direction

Reproduce the problem with the Azure.Functions.Cli.linux-x64.4.0.4915.zip release, unzip it, and inspect the executable permissions on func and gozip. Trace how the Linux x64 release archive is assembled; done means ./func starts from a freshly unzipped archive without a manual chmod +x workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli, release
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.