1DUNE-SHUTDOWN(1)                  Dune Manual                 DUNE-SHUTDOWN(1)
2
3
4

NAME

6       dune-shutdown - Cancel and shutdown any builds in the current
7       workspace.
8

SYNOPSIS

10       dune shutdown [OPTION]…
11

OPTIONS

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

COMMON OPTIONS

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

EXIT STATUS

279       shutdown exits with the following status:
280
281       0   on success.
282
283       1   if an error happened.
284
285       130 if it was interrupted by a signal.
286

ENVIRONMENT

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

SEE ALSO

332       dune(1)
333
334
335
336Dune n/a                                                      DUNE-SHUTDOWN(1)
Impressum