-
Notifications
You must be signed in to change notification settings - Fork 365
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
Handle package cache in secondary locations. #856
Conversation
Previous failure was because I was using cpp-filesystem 1.4 and it has a bug with |
Hi @wenjuno thanks so much for this PR! We're currently preparing a release, and we'll review this right after. I hope we can make another release early next week to get this in! |
btw. we also just updated to the latest cpp-filesystem (and faced some issues). Hopefully those issues are resolved for now (mostly around long path support on Windows). I am happy to hear that the update also fixed something for you! |
Hi @wolfv, thanks. I see you changed the master branch, do you want me to rebase my branch? To be clear, the cpp-filesystem 1.5 didn't fix something for me, maybe my comment above is a bit confusing. What I mean is I was using 1.4 for local testing and it has the bug so the code worked for me but CI has started using 1.5 around the time so it failed the CI test the first time. I went back and found out the code that relies on the 1.4 behavior (the Thanks. |
There is a fork in the history so I rebased my three commits. |
thanks for fixing this symlink extract bug and improving the situation with multiple package caches! Excellent PR |
Thanks, I'm glad I can help. I will close the associated issue. |
This is the fix for #852. I changed my mind about the solution and I think it's a better and easier one:
I have two questions that I think might be related to the decision I'm not aware of but I'm very curious about them:
py_interface.cpp
theexecute
member function ofMTransaction
is wrapped in a lambda function. Why not use the member function's address?PackageCacheData::m_valid_cache
isstd::map
. Why not usestd::unorder_map
instead? I basically follow the style and usestd::map
for the cache inMultiPackageCache
.Thanks.