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-load-dir
137           Print debugging info about directory loading
138
139       --debug-store-digest-preimage
140           Store digest preimage for all computed digests, so that it's
141           possible to reverse them later, for debugging. The digests are
142           stored in the shared cache (see --cache flag) as values, even if
143           cache is otherwise disabled. This should be used only for
144           debugging, since it's slow and it litters the shared cache.
145
146       --default-target=TARGET (absent=@@default)
147           Set the default target that when none is specified to dune build.
148
149       --diff-command=VAL (absent DUNE_DIFF_COMMAND env)
150           Shell command to use to diff files. Use - to disable printing the
151           diff.
152
153       --disable-promotion (absent DUNE_DISABLE_PROMOTION env)
154           Disable all promotion rules
155
156       --display=MODE
157           Control the display mode of Dune. See dune-config(5) for more
158           details. Valid values for this option are One of progress, verbose,
159           short or quiet
160
161       --dump-memo-graph=FILE
162           Dumps the dependency graph to a file after the build is complete
163
164       --dump-memo-graph-format=FORMAT (absent=gexf)
165           File format to be used when dumping dependency graph
166
167       --dump-memo-graph-with-timing
168           With --dump-memo-graph, will re-run each cached node in the Memo
169           graph after building and include the runtime in the output. Since
170           all nodes contain a cached value, this will measure just the
171           runtime of each node
172
173       --help[=FMT] (default=auto)
174           Show this help in format FMT. The value FMT must be one of auto,
175           pager, groff or plain. With auto, the format is pager or plain
176           whenever the TERM env var is dumb or undefined.
177
178       --ignore-promoted-rules
179           Ignore rules with (mode promote), except ones with (only ...). The
180           variable %{ignoring_promoted_rules} in dune files reflects whether
181           this option was passed or not.
182
183       --instrument-with=BACKENDS (absent DUNE_INSTRUMENT_WITH env)
184           "Enable instrumentation by BACKENDS. BACKENDS is a comma-separated
185           list of library names, each one of which must declare an
186           instrumentation backend.
187
188       -j JOBS
189           Run no more than JOBS commands simultaneously.
190
191       --no-buffer
192           Do not buffer the output of commands executed by dune. By default
193           dune buffers the output of subcommands, in order to prevent
194           interleaving when multiple commands are executed in parallel.
195           However, this can be an issue when debugging long running tests.
196           With --no-buffer, commands have direct access to the terminal. Note
197           that as a result their output won't be captured in the log file.
198           You should use this option in conjunction with -j 1, to avoid
199           interleaving. Additionally you should use --verbose as well, to
200           make sure that commands are printed before they are being executed.
201
202       --no-config
203           Do not load the configuration file
204
205       --no-print-directory
206           Suppress "Entering directory" messages
207
208       --only-packages=PACKAGES
209           Ignore stanzas referring to a package that is not in PACKAGES.
210           PACKAGES is a comma-separated list of package names. Note that this
211           has the same effect as deleting the relevant stanzas from dune
212           files. It is mostly meant for releases. During development, it is
213           likely that what you want instead is to build a particular
214           <package>.install target.
215
216       -p PACKAGES, --for-release-of-packages=PACKAGES (required)
217           Shorthand for --release --only-packages PACKAGE. You must use this
218           option in your <package>.opam files, in order to build only what's
219           necessary when your project contains multiple packages as well as
220           getting reproducible builds.
221
222       --print-metrics
223           Print out various performance metrics after every build
224
225       --profile=VAL (absent DUNE_PROFILE env)
226           Select the build profile, for instance dev or release. The default
227           is dev.
228
229       --promote-install-files[=VAL] (default=true)
230           Promote the generated <package>.install files to the source tree
231
232       --release
233           Put dune into a reproducible release mode. This is in fact a
234           shorthand for --root . --ignore-promoted-rules --no-config
235           --profile release --always-show-command-line
236           --promote-install-files --default-target @install
237           --require-dune-project-file. You should use this option for release
238           builds. For instance, you must use this option in your
239           <package>.opam files. Except if you already use -p, as -p implies
240           this option.
241
242       --require-dune-project-file[=VAL] (default=true)
243           Fail if a dune-project file is missing.
244
245       --root=DIR
246           Use this directory as workspace root instead of guessing it. Note
247           that this option doesn't change the interpretation of targets given
248           on the command line. It is only intended for scripts.
249
250       --store-orig-source-dir (absent DUNE_STORE_ORIG_SOURCE_DIR env)
251           Store original source location in dune-package metadata
252
253       --terminal-persistence=MODE
254           Changes how the log of build results are displayed to the console
255           between rebuilds while in --watch mode. Supported modes: preserve,
256           clear-on-rebuild, clear-on-rebuild-and-flush-history.
257
258       --trace-file=FILE
259           Output trace data in catapult format (compatible with
260           chrome://tracing)
261
262       --verbose
263           Same as --display verbose
264
265       --version
266           Show version information.
267
268       --workspace=FILE (absent DUNE_WORKSPACE env)
269           Use this specific workspace file instead of looking it up.
270
271       -x VAL
272           Cross-compile using this toolchain.
273

MORE HELP

275       Use `dune COMMAND --help' for help on a single command.
276

EXIT STATUS

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

ENVIRONMENT

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

BUGS

333       Check bug reports at https://github.com/ocaml/dune/issues
334

SEE ALSO

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