Skip to content

Commit 6b8e524

Browse files
pyrmontbakpakin
authored andcommitted
Change :dependencies hook to :postdeps
1 parent 6a96b61 commit 6b8e524

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/boot/boot.janet

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4326,7 +4326,7 @@
43264326
(defn bundle/install
43274327
``Install a bundle from the local filesystem. The name of the bundle is
43284328
the value mapped to :name in either `config` or the info file. There are
4329-
5 hooks called during installation (dependencies, clean, build, install and
4329+
5 hooks called during installation (postdeps, clean, build, install and
43304330
check). A user can register a hook by defining a function with the same name
43314331
in the bundle script.``
43324332
[path &keys config]
@@ -4375,7 +4375,8 @@
43754375
(def module (get-bundle-module bundle-name))
43764376
(def all-hooks (seq [[k v] :pairs module :when (symbol? k) :unless (get v :private)] (keyword k)))
43774377
(put man :hooks all-hooks)
4378-
(do-hook module bundle-name :dependencies man)
4378+
(do-hook module bundle-name :dependencies man) # deprecated, use :postdeps
4379+
(do-hook module bundle-name :postdeps man)
43794380
(do-hook module bundle-name :clean man)
43804381
(do-hook module bundle-name :build man)
43814382
(do-hook module bundle-name :install man)

0 commit comments

Comments
 (0)