-
Notifications
You must be signed in to change notification settings - Fork 337
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
windows package cache root switch does only work with "{root}" not this.root #1065
Comments
Thanks, I'm gonna make it priority to fix this. |
I tried to find the root (ha, what a semantic coincidence) of this, but with no success, still getting into the code base and reading. |
https://github.com/nerdvegas/rez/pull/1046/files Is this related ? |
Here is an example package to reproduce:
With payload caching enable run Tested with 2.8x and pwsh |
Ah, thanks. Now I understand the issue and able to reproduce. |
So it looks like this line in is binding a installed variant, not a cached one. Tested with this change can correct the result. # Line 2007 in rez/resolved_context.py
pkg_bindings_["variant"].root = pkg_roots.get(pkg.name, pkg.root)
executor.bind('this', pkg_bindings_["variant"]) But that shouldn't be the right way to fix it, thoughts ? I think we should let the variant know it's been cached. |
The package cache root switch does not work with this.root in an envvar under windows.
Only if the the var is being set with "{root}/whatnot" the root switch to the local payload works.
The payload copy does work, only when resolving it wont use the local data even with REZ_READ_PACKAGE_CACHE=1
Changing the package from this.root to "{root}" will make it work.
The text was updated successfully, but these errors were encountered: