1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-20 15:44:49 +00:00

Merge pull request #357 from andrewchambers/lockfilejdn

Lockfiles are jdn, not code.
This commit is contained in:
Calvin Rose 2020-04-23 13:03:51 -04:00 committed by GitHub
commit d148e14aa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -726,7 +726,7 @@ int main(int argc, const char **argv) {
(defn- make-lockfile
[&opt filename]
(default filename "lockfile.janet")
(default filename "lockfile.jdn")
(def cwd (os/cwd))
(def packages @[])
# Read installed modules from manifests
@ -757,7 +757,7 @@ int main(int argc, const char **argv) {
(defn- load-lockfile
[&opt filename]
(default filename "lockfile.janet")
(default filename "lockfile.jdn")
(def lockarray (parse (slurp filename)))
(each {:repo url :sha sha} lockarray
(install-git {:repo url :tag sha} nil true)))
@ -1011,9 +1011,9 @@ Subcommands are:
make-lockfile (lockfile) : Create a lockfile based on repositories in the cache. The
lockfile will record the exact versions of dependencies used to ensure a reproducible
build. Lockfiles are best used with applications, not libraries. The default lockfile
name is lockfile.janet.
name is lockfile.jdn.
load-lockfile (lockfile) : Install modules from a lockfile in a reproducible way. The
default lockfile name is lockfile.janet.
default lockfile name is lockfile.jdn.
repl : Run a repl in the context of the current project.janet file. This lets you run rules and
otherwise debug the current project.janet file.