Skip to content

Commit 39226aa

Browse files
committed
Warn about config limits for scripts
1 parent a094a85 commit 39226aa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/scripts.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ is most often `stack script` but it can be, for example, `stack runghc`. If
1414
there is no Stack interpreter options comment, Stack will warn that one was
1515
expected.
1616

17+
!!! warn
18+
19+
No project-level configuration is available for scripts and scripts will
20+
ignore any supplied `--stack-yaml=<project-level-config-file>. As some
21+
settings don't have a command line equivalent and can only be set via YAML,
22+
such as `extra-deps`, `allow-newer` and `allow-newer-deps`, if a script would
23+
need these options to build then your only choice is to edit the global
24+
configuration or to limit package dependencies of scripts to those included
25+
with a given resolver.
26+
1727
An example will be easiest to understand. Consider the Haskell source file
1828
`turtle-example.hs` with contents:
1929

0 commit comments

Comments
 (0)