Are the project dependecies supposed to be fetched every time the project is open? It’s what’s happening to me and as my internet connection is not so great, it takes forever
I’m using Defold-x86_64-win32 1.2.144 on windows 10, but the same thing is happening with my friend using Ubuntu.
Yes, it is a workaround for those who have bad connections. I guess there are things we could do on our end to speed things up. Maybe we shouldn’t fetch libraries every time the editor is started. @mats.gisselson do you recall why we do it on startup? Couldn’t we use the ones in .internal/?
Looking at the code, it seems we do use the ones from .internal. Might be something that is causing us to think they’re in need of an update though. Sounds like a bug to me.
If you start the editor without an internet connection (not a slow one but no connection at all) then we use the libraries we have cached without in any way delaying startup of the editor
If you start the editor with an internet connection (no matter if it is a slow or a fast one) then we check for changes. And by “check for changes” I mean that we use ETags right? Or do we actually download the dependency every time without checking if the resource has changed?
@shinnildev How slow is forever? Can you confirm that it really does download the dependencies every time (check timestamp on files in .internal folder)? Are the dependencies hosted on GitHub?
IIRC we’ve had problems with dependencies hosted on github. The .zip ends up on some cloud service that apparently does not respect our If-None-Match header
@britzl the directory ./internal/cache timestamp still unchanged, but ./internal/lib updates every time. My internet speed is 2 Mbps ADSL from Brazil, very slow, I know