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

We need to ensure snapshots are in git roots #205

Open creationix opened 7 years ago

creationix commented 7 years ago

All packages with snapshots are suddenly broken because my git repo did garbage collection.

We need to fix the storage model to have git refs pointing to snapshots (maybe refs/snapshots/user/name/version)

creationix commented 7 years ago

Another idea is to put them in as refs/tags/user/name/version/deps where deps points to a hash of the deps tree in the snapshot. (though it could also point to the entire tree as before, it the same cost either way)