Closed loewenheim closed 3 years ago
I don’t like to store lock files, but if it is a blocker for the packaging I will do.
What is the recommendation when the project is an application and a library?
It could be nice for example, to be usable with crun.
It's not a blocker for my nixpkgs
package at least—it needs a lock file, but I can just add one from a successful build. To be honest I don't really know what to do for a library and application in one. It's probably fine to leave it without one.
Btw, thank you very much for this program. It's been a huge boost to my productivity and is much easier to use than connect was.
As someone who has been burned by not having a lockfile committed in version control in the past, I would strongly recommend you commit the lockfile. Of course it's completely your decision, just my recommendation. I have a project that is now dead because I left it for a few months and when I came back I could no longer build it. The new versions of dependencies that automatically got installed no longer worked together, and I couldn't for the life of me figure out specifically the right combination to get a successful build. A lockfile ensures your build is reproducible in the future
Per https://crystal-lang.org/reference/the_shards_command/index.html, the
shard.lock
file should be checked into version control for applications.