-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add --no-cache option to run_pyright script (#24212)
## Summary & Motivation The `uv` cache can cause subtle problems sometimes when rebuilding pyright environments. Rebuilding envs without using the cache can fix an apparently intractable problem. This PR adds `--no-cache` as an arg to `run-pyright.py`. This is intended for rare use as an escape hatch for pyright env problems-- it makes rebuilding the envs much more slow. See this issue I posted over at `uv` for some info about why you might want to use this: astral-sh/uv#7028 ## How I Tested These Changes My pyright was (unresolvable imports for all dagster packages). After rebuilding my env with `--no-cache` the problem went away. The issue was that the cache seemed to be holding `pth` files for our dagster editables that did not respect `editable_mode=compat` and were incorrectly formatted for pyright. ## Changelog [New | Bug | Docs] NOCHANGELOG
- Loading branch information
Showing
2 changed files
with
18 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters