-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
Fetch doesn't work for recently updated package #528
Conversation
I had to |
Hm, looks like the caches should be circumvented when an explicit request for an uncached Version happens. Currently, AFAIR, the local cache is always used and if it is out of date, this error will happen. |
Yes, you're right. I might fix it later today. |
Just ran into this with a package that was updated 16hrs ago --
What is an explicit request in this case? Would this fix only apply to |
That greatly limits the usefulness of the cache to an etag comparison.
I'd say |
Yeah, let's do both. I guess that there will be a lot less confusion that way and speed is only really important for the build process anyway. |
Revert "store metadata cache on disk" This reverts commit 161aad0. We only ask the package suppliers for metadata when upgrading or searching a specific package version. In particular building an already fetched package does not ask the package suppliers (only the package manager responsible for locally installed packages). In all cases where we get data from a package supplier we want to get the latest available information. Therefor it doesn't make sense to cache any metadata from the package suppliers on disk. Not sure whether we still need the in memory metadata cache (e.g. for multiple queries during dependency resolution).
We only ask the package suppliers for metadata when upgrading or In all cases where we get data from a package supplier we want to get Not sure whether we still need the in memory metadata cache (e.g. for The other need to query package suppliers (regular upgrade check) is already covered by the project local upgrade cache in |
Sounds reasonable. Wonder how the current situation came to be. |
Fetch doesn't work for recently updated package
I added it to not hit the website on a rebuild. Not sure why it did back then, maybe the upgrade cache wasn't yet working? |
Yeah, I was mostly wondering, because there were hard numbers in #388. Anyway, not really important now either - I didn't notice any degrade in performance. |
Maybe sth. w/ dub.selections.json or the upgrade cache wasn't working back then? |
I have updated a package of mine on the registry around 30 minutes ago. When I try using it as a dependency, I get:
Root package psql-native contains reference to invalid package backtrace-d
If I try to
dub fetch backtrace-d --version=0.1.0
, I get:No package backtrace-d was found matching the dependency 0.1.0
If I try the
~master
version, it works.If I try a different package, it works.
If I am doing a mistake, a better error message would be nice. Otherwise, there is a bug somewhere.