Skip to content

Commit 65f13c7

Browse files
Fix #8756: doc: extra-source-files are tracked by cabal build (#8765)
Changing a file from `extra-source-files` causes `cabal build` to reevaluate the build plan, judging from the following behavior. ```console $ cabal build ... $ cabal build Up to date # Make a change to any of the extra-source-files, e.g. Foo.txt $ cabal build ... In order, the following would be built (use -v for more details): - ... (lib) (file Foo.txt changed) ... ``` One notes here that the 3rd `cabal build` does not just output "Up to date". Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit fdcf77b)
1 parent db03fe1 commit 65f13c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/cabal-package.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -774,9 +774,9 @@ describe the package as a whole:
774774

775775
.. pkg-field:: extra-source-files: filename list
776776

777-
A list of additional files to be included in source distributions
778-
built with :ref:`setup-sdist`. As with :pkg-field:`data-files` it can use
779-
a limited form of ``*`` wildcards in file names.
777+
A list of additional files to be included in source distributions built with :ref:`setup-sdist`.
778+
As with :pkg-field:`data-files` it can use a limited form of ``*`` wildcards in file names.
779+
Files listed here are tracked by ``cabal build``; changes in these files cause (partial) rebuilds.
780780

781781
.. pkg-field:: extra-doc-files: filename list
782782
:since: 1.18

0 commit comments

Comments
 (0)