Azure / Azure/functions-action

zip deploy doesn't resolve symlinks

Open
#332 0 comments 0 reactions 0 assignees View on GitHub
need-to-triage
Dominant language
TypeScript
Stars
184
Forks
92
PR merge metrics
No merged PRs in 30d

Description

If your functions source code folder contains symlinks, then the action will zip the folder - preserving but not resolving the symlinks. But the azure functions runtime doesn't support symlinks (in a zip deployment at least), so this fails to resolve then at runtime.

I tried to track it down, and replacing
https://github.com/microsoft/pipelines-appservice-lib/blob/741329b4a3e150978e78346323fba635f4b2c0e2/src/Utilities/zipUtility.ts#L41
with something like `glob("**/*", { cwd: folderPath, nodir: true, dot: true, follow: true })` (note the `follow` arg) should work.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.