reload-dir forcing cwd causes permissions errors #2462
Unanswered
zg-anthonyroy
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wanted to upgrade our version of Uvicorn from 0.14 to the latest but was prevented from doing so because of the reloader secretly adding the CWD to the directories to watch. I have multiple projects that were built on the old version where this does not happen so i was wondering if we could get a flag or something to remove this hidden and undocumented functionality.
We are forced to stay on 0.17.6 until that is reality. Or we find an alternate solution.
This is not just an inconvenience it actually tries to monitor directories that it has no permissions for and crashes the reloader:
Switching back to the godreloader (which is the version before 0.18.0) resolves our issue because it only monitors the directory we want.
I know this is discussed elsewhere but has not been talked about for over a year:
#2009 , #1783. #1833
Beta Was this translation helpful? Give feedback.
All reactions