Azure / Azure/azure-functions-host
watchDirectories does not work with symbolic link
- Dominant language
- C#
- Stars
- 2k
- Forks
- 482
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 38
Description
#### Investigative information
Please provide the following:
- Timestamp: 2018-09-15
- Function App version (1.0 or 2.0-beta): 2.0.1-beta.37
- Function App name: Local
- Function Language: Python
#### Repro steps
1. Create symbolic link to folder `ln -s ../src src`
2. Create host.json containing: `"watchDirectories": ["src"]`
2. Make any change to files inside src folder
#### Expected behavior
Expected the function web host to restart, but it does not pick any change.
#### Actual behavior
Because folder is a symbolic link, it does not watch files correctly.
#### Known workarounds
Also, tried adding `"watchDirectories": ["../src"]` but nothing works.
Contributor guide
Research direction
Start with the host.json watchDirectories setting and reproduce the reported case using a symbolic link from src to ../src. Trace how the host watches that directory, then verify that changing a file through the symlink causes the function web host to restart.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, csharp, python
- Domain
- backend, cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100