Skip to content

Commit 6d2222c

Browse files
committed
docs: update njs build instructions
1 parent abf4454 commit 6d2222c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

source/howto/source.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,23 +115,27 @@ revision numbers, respectively); omit the packages you won't use.
115115
:hash: source-njs
116116

117117
To build Unit with `njs <https://nginx.org/en/docs/njs/>`__ support,
118-
download the :program:`njs` code
119-
to the same parent directory
118+
download the :program:`njs` code to the same parent directory
120119
as the Unit code.
121120

121+
**0.8.2** is the latest version of :program:`njs` that Unit supports.
122+
Make sure to check out the correct branch before configuring the binaries.
123+
122124
If you'd like to use `Mercurial <https://www.mercurial-scm.org/downloads>`_:
123125

124126
.. code-block:: console
125127
126128
$ cd ..
127129
$ hg clone https://hg.nginx.org/njs
130+
$ hg update -r 0.8.2
128131
129132
If you prefer `Git <https://git-scm.com/downloads>`_:
130133

131134
.. code-block:: console
132135
133136
$ cd ..
134137
$ git clone https://github.com/nginx/njs
138+
$ git checkout 0.8.2
135139
136140
Next, configure and build the :program:`njs` binaries:
137141

@@ -166,7 +170,7 @@ revision numbers, respectively); omit the packages you won't use.
166170
.. warning::
167171
The **unit-wasm** module is deprecated.
168172
We recommend using **wasm-wasi-component** instead,
169-
available in Unit 1.32.0 and later, which supports
173+
available in Unit 1.32.0 and later, which supports
170174
WebAssembly Components using standard WASI 0.2 interfaces.
171175

172176
To build Unit with the `WebAssembly <https://webassembly.org>`__

0 commit comments

Comments
 (0)