1DUNE-EXTERNAL-LIB-DEPS(1)         Dune Manual        DUNE-EXTERNAL-LIB-DEPS(1)
2
3
4

NAME

6       dune-external-lib-deps - Removed command.
7

SYNOPSIS

9       dune external-lib-deps [OPTION]… [TARGET]…
10

DESCRIPTION

12       This subcommand used to print out an approximate set of external
13       libraries that were required for building a given set of targets,
14       without running the build. While this feature was useful, over time the
15       quality of approximation had degraded and the cost of maintenance had
16       increased, so we decided to remove it.
17

OPTIONS

19       --action-stderr-on-success=VAL
20           Same as --action-stdout-on-success but for the standard output for
21           error messages. A good default for large mono-repositories is
22           --action-stdout-on-success=swallow
23           --action-stderr-on-success=must-be-empty. This ensures that a
24           successful build has a "clean" empty output.
25
26       --action-stdout-on-success=VAL
27           Specify how to deal with the standard output of actions when they
28           succeed. Possible values are: print to just print it to Dune's
29           output, swallow to completely ignore it and must-be-empty to
30           enforce that the action printed nothing. With must-be-empty, Dune
31           will consider that the action failed if it printed something to its
32           standard output. The default is print.
33
34       --build-info
35           Show build information.
36
37       --error-reporting=VAL (absent=deterministic)
38           Controls when the build errors are reported. early - report errors
39           as soon as they are discovered. deterministic - report errors at
40           the end of the build in a deterministic order. twice - report each
41           error twice: once as soon as the error is discovered and then again
42           at the end of the build, in a deterministic order.
43
44       -f, --force
45           Force actions associated to aliases to be re-executed even if their
46           dependencies haven't changed.
47
48       --file-watcher=VAL (absent=automatic)
49           Mechanism to detect changes in the source. Automatic to make dune
50           run an external program to detect changes. Manual to notify dune
51           that files have changed manually."
52
53       --missing
54           unused
55
56       --passive-watch-mode
57           Similar to [--watch], but only start a build when instructed
58           externally by an RPC.
59
60       --react-to-insignificant-changes
61           react to insignificant file system changes; this is only useful for
62           benchmarking dune
63
64       --sandbox=VAL (absent DUNE_SANDBOX env)
65           Sandboxing mode to use by default. Some actions require a certain
66           sandboxing mode, so they will ignore this setting. The allowed
67           values are: none, symlink, copy, hardlink.
68
69       --sexp
70           unused
71
72       --unstable-by-dir
73           unused
74
75       -w, --watch
76           Instead of terminating build after completion, wait continuously
77           for file changes.
78
79       --wait-for-filesystem-clock
80           Dune digest file contents for better incrementally. These digests
81           are themselves cached. In some cases, Dune needs to drop some
82           digest cache entries in order for things to be reliable. This
83           option makes Dune wait for the file system clock to advance so that
84           it doesn't need to drop anything. You should probably not care
85           about this option; it is mostly useful for Dune developers to make
86           Dune tests of the digest cache more reproducible.
87

COMMON OPTIONS

89       These options are common to all commands.
90
91       --always-show-command-line
92           Always show the full command lines of programs executed by dune
93
94       --auto-promote
95           Automatically promote files. This is similar to running dune
96           promote after the build.
97
98       --build-dir=FILE (absent DUNE_BUILD_DIR env)
99           Specified build directory. _build if unspecified
100
101       --cache=VAL (absent DUNE_CACHE env)
102           Enable or disable Dune cache (either enabled or disabled). Default
103           is `disabled'.
104
105       --cache-check-probability=VAL (absent DUNE_CACHE_CHECK_PROBABILITY env)
106           Check build reproducibility by re-executing randomly chosen rules
107           and comparing their results with those stored in Dune cache. Note:
108           by increasing the probability of such checks you slow down the
109           build. The default probability is zero, i.e. no rules are checked.
110
111       --cache-storage-mode=VAL (absent DUNE_CACHE_STORAGE_MODE env)
112           Dune cache storage mode (one of auto, hardlink or copy). Default is
113           `auto'.
114
115       --config-file=FILE
116           Load this configuration file instead of the default one.
117
118       --debug-artifact-substitution
119           Print debugging info about artifact substitution
120
121       --debug-backtraces
122           Always print exception backtraces.
123
124       --debug-cache=VAL
125           Show debug messages on cache misses for the given cache layers.
126           Value is a comma-separated list of cache layer names. All available
127           cache layers: shared,workspace-local,fs.
128
129       --debug-dependency-path
130           In case of error, print the dependency path from the targets on the
131           command line to the rule that failed.
132
133       --debug-digests
134           Explain why Dune decides to re-digest some files
135
136       --debug-findlib
137           Debug the findlib sub-system.
138
139       --debug-load-dir
140           Print debugging info about directory loading
141
142       --debug-store-digest-preimage
143           Store digest preimage for all computed digests, so that it's
144           possible to reverse them later, for debugging. The digests are
145           stored in the shared cache (see --cache flag) as values, even if
146           cache is otherwise disabled. This should be used only for
147           debugging, since it's slow and it litters the shared cache.
148
149       --default-target=TARGET (absent=@@default)
150           Set the default target that when none is specified to dune build.
151
152       --diff-command=VAL (absent DUNE_DIFF_COMMAND env)
153           Shell command to use to diff files. Use - to disable printing the
154           diff.
155
156       --disable-promotion (absent DUNE_DISABLE_PROMOTION env)
157           Disable all promotion rules
158
159       --display=MODE
160           Control the display mode of Dune. See dune-config(5) for more
161           details.
162
163       --dump-memo-graph=FILE
164           Dumps the dependency graph to a file after the build is complete
165
166       --dump-memo-graph-format=FORMAT (absent=gexf)
167           File format to be used when dumping dependency graph
168
169       --dump-memo-graph-with-timing
170           With --dump-memo-graph, will re-run each cached node in the Memo
171           graph after building and include the runtime in the output. Since
172           all nodes contain a cached value, this will measure just the
173           runtime of each node
174
175       --help[=FMT] (default=auto)
176           Show this help in format FMT. The value FMT must be one of auto,
177           pager, groff or plain. With auto, the format is pager or plain
178           whenever the TERM env var is dumb or undefined.
179
180       --ignore-promoted-rules
181           Ignore rules with (mode promote), except ones with (only ...). The
182           variable %{ignoring_promoted_rules} in dune files reflects whether
183           this option was passed or not.
184
185       --instrument-with=BACKENDS (absent DUNE_INSTRUMENT_WITH env)
186           "Enable instrumentation by BACKENDS. BACKENDS is a comma-separated
187           list of library names, each one of which must declare an
188           instrumentation backend.
189
190       -j JOBS
191           Run no more than JOBS commands simultaneously.
192
193       --no-buffer
194           Do not buffer the output of commands executed by dune. By default
195           dune buffers the output of subcommands, in order to prevent
196           interleaving when multiple commands are executed in parallel.
197           However, this can be an issue when debugging long running tests.
198           With --no-buffer, commands have direct access to the terminal. Note
199           that as a result their output won't be captured in the log file.
200           You should use this option in conjunction with -j 1, to avoid
201           interleaving. Additionally you should use --verbose as well, to
202           make sure that commands are printed before they are being executed.
203
204       --no-config
205           Do not load the configuration file
206
207       --no-print-directory
208           Suppress "Entering directory" messages
209
210       --only-packages=PACKAGES
211           Ignore stanzas referring to a package that is not in PACKAGES.
212           PACKAGES is a comma-separated list of package names. Note that this
213           has the same effect as deleting the relevant stanzas from dune
214           files. It is mostly meant for releases. During development, it is
215           likely that what you want instead is to build a particular
216           <package>.install target.
217
218       -p PACKAGES, --for-release-of-packages=PACKAGES (required)
219           Shorthand for --release --only-packages PACKAGE. You must use this
220           option in your <package>.opam files, in order to build only what's
221           necessary when your project contains multiple packages as well as
222           getting reproducible builds.
223
224       --print-metrics
225           Print out various performance metrics after every build
226
227       --profile=VAL (absent DUNE_PROFILE env)
228           Select the build profile, for instance dev or release. The default
229           is dev.
230
231       --promote-install-files[=VAL] (default=true)
232           Promote the generated <package>.install files to the source tree
233
234       --release
235           Put dune into a reproducible release mode. This is in fact a
236           shorthand for --root . --ignore-promoted-rules --no-config
237           --profile release --always-show-command-line
238           --promote-install-files --default-target @install
239           --require-dune-project-file. You should use this option for release
240           builds. For instance, you must use this option in your
241           <package>.opam files. Except if you already use -p, as -p implies
242           this option.
243
244       --require-dune-project-file[=VAL] (default=true)
245           Fail if a dune-project file is missing.
246
247       --root=DIR
248           Use this directory as workspace root instead of guessing it. Note
249           that this option doesn't change the interpretation of targets given
250           on the command line. It is only intended for scripts.
251
252       --store-orig-source-dir (absent DUNE_STORE_ORIG_SOURCE_DIR env)
253           Store original source location in dune-package metadata
254
255       --terminal-persistence=MODE
256           Changes how the log of build results are displayed to the console
257           between rebuilds while in --watch mode. Supported modes: preserve,
258           clear-on-rebuild, clear-on-rebuild-and-flush-history.
259
260       --trace-file=FILE
261           Output trace data in catapult format (compatible with
262           chrome://tracing)
263
264       --verbose
265           Same as --display verbose
266
267       --version
268           Show version information.
269
270       --workspace=FILE (absent DUNE_WORKSPACE env)
271           Use this specific workspace file instead of looking it up.
272
273       -x VAL
274           Cross-compile using this toolchain.
275

MORE HELP

277       Use `dune COMMAND --help' for help on a single command.
278

EXIT STATUS

280       external-lib-deps exits with the following status:
281
282       0   on success.
283
284       123 on indiscriminate errors reported on standard error.
285
286       124 on command line parsing errors.
287
288       125 on unexpected internal errors (bugs).
289

ENVIRONMENT

291       These environment variables affect the execution of external-lib-deps:
292
293       DUNE_BUILD_DIR
294           Specified build directory. _build if unspecified
295
296       DUNE_CACHE
297           Enable or disable Dune cache (either enabled or disabled). Default
298           is `disabled'.
299
300       DUNE_CACHE_CHECK_PROBABILITY
301           Check build reproducibility by re-executing randomly chosen rules
302           and comparing their results with those stored in Dune cache. Note:
303           by increasing the probability of such checks you slow down the
304           build. The default probability is zero, i.e. no rules are checked.
305
306       DUNE_CACHE_STORAGE_MODE
307           Dune cache storage mode (one of auto, hardlink or copy). Default is
308           `auto'.
309
310       DUNE_DIFF_COMMAND
311           Shell command to use to diff files. Use - to disable printing the
312           diff.
313
314       DUNE_DISABLE_PROMOTION
315           Disable all promotion rules
316
317       DUNE_INSTRUMENT_WITH
318           "Enable instrumentation by BACKENDS. BACKENDS is a comma-separated
319           list of library names, each one of which must declare an
320           instrumentation backend.
321
322       DUNE_PROFILE
323           Build profile. dev if unspecified or release if -p is set.
324
325       DUNE_SANDBOX
326           Sandboxing mode to use by default. (see --sandbox)
327
328       DUNE_STORE_ORIG_SOURCE_DIR
329           Store original source location in dune-package metadata
330
331       DUNE_WORKSPACE
332           Use this specific workspace file instead of looking it up.
333

BUGS

335       Check bug reports at https://github.com/ocaml/dune/issues
336

SEE ALSO

338       dune(1)
339
340
341
342Dune n/a                                             DUNE-EXTERNAL-LIB-DEPS(1)
Impressum