mirror of
https://github.com/janet-lang/janet
synced 2025-08-02 01:02:54 +00:00
Merge pull request #357 from andrewchambers/lockfilejdn
Lockfiles are jdn, not code.
This commit is contained in:
commit
d148e14aa2
@ -726,7 +726,7 @@ int main(int argc, const char **argv) {
|
|||||||
|
|
||||||
(defn- make-lockfile
|
(defn- make-lockfile
|
||||||
[&opt filename]
|
[&opt filename]
|
||||||
(default filename "lockfile.janet")
|
(default filename "lockfile.jdn")
|
||||||
(def cwd (os/cwd))
|
(def cwd (os/cwd))
|
||||||
(def packages @[])
|
(def packages @[])
|
||||||
# Read installed modules from manifests
|
# Read installed modules from manifests
|
||||||
@ -757,7 +757,7 @@ int main(int argc, const char **argv) {
|
|||||||
|
|
||||||
(defn- load-lockfile
|
(defn- load-lockfile
|
||||||
[&opt filename]
|
[&opt filename]
|
||||||
(default filename "lockfile.janet")
|
(default filename "lockfile.jdn")
|
||||||
(def lockarray (parse (slurp filename)))
|
(def lockarray (parse (slurp filename)))
|
||||||
(each {:repo url :sha sha} lockarray
|
(each {:repo url :sha sha} lockarray
|
||||||
(install-git {:repo url :tag sha} nil true)))
|
(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
|
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
|
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
|
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
|
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
|
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.
|
otherwise debug the current project.janet file.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user