-
Notifications
You must be signed in to change notification settings - Fork 957
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File restructuring needs a manual sync --reinstall? #10390
Comments
You could add
to your |
I think this is "working as intended" even though it's somewhat confusing... We don't re-build the package on every invocation, only when certain paths change (see, e.g., https://docs.astral.sh/uv/concepts/cache/). In this case, the package is installed as editable, so that mostly "just works" -- like, if you change the print in However, in this case, when you built the first time, In short, you need to tell uv to re-build the module, because we don't "always rebuild", and you've changed something that we don't detect. |
That totally makes sense, and avoiding rebuilds is great. I hoped you might have enough information to cheaply know the cache needs invalidating. Is this something that the uv build system (#3957) might be able to catch? We were waiting while that stabilises a little but could try that out too? No problem if not, it's just a bit messy for folks on my team less into |
Actually looking at your link on caching more (thanks for that), we're likely to change the |
We're restructuring some of our packages with a
src/
layout and we've had some friction with moving modules not being found unless we do a manualuv sync --resinstall
. I wondered if that's expected or might be something that can be handled?Minimal reproduction:
uv init --lib
Then add some files
one.py
two.py
(this shows the opposite move, out of
src/
but the same happens either way)It's easily fixed, just causes confusion when multiplied over lots of people and repositories being updated at different times.
The text was updated successfully, but these errors were encountered: