luvit / lit

Toolkit for developing, sharing, and running luvit/lua programs and libraries.
http://lit.luvit.io/
Apache License 2.0
245 stars 58 forks source link

Make server fall back to resolving deps for missing snapshots when exporting zips #250

Closed squeek502 closed 5 years ago

squeek502 commented 5 years ago

Server-side version of #249 / 5c75c68a0e9836a96e9ba93a881121c4733e0dcf

Fixes #248 and most of #247 without needing the lit client to be updated


Also made it enforce that the resolved hash matches the hash in meta.snapshot, which means that its guaranteed that the next time the zip is requested it'll be able to just use the snapshot hash and not need to resolve the deps (since the resolution will create that hash in the db). Not sure if that makes sense to do or not.