-
Notifications
You must be signed in to change notification settings - Fork 841
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into sig-sign-sdist-and-upload-sign
* master: (59 commits) Ignore global database when copying precompiled packages #1146 Revert an unneeded change to 'runAndLog' Remove old GHCJS unpack directory if it exists Allow "stack setup ghcjs-0.1.0.20150924_ghc-7.10.2" Properly unzip GHCJS on windows (stack setup) Consider user-specified package flags in stack solver #1071 Fix a warning Colored build status in filewatch mode Add NixOS to 'How to install'. Include NixOS information #1118 Style improvements for Docker compatibility check Fix `awaiting pr` label link Fix GHC 7.8 build Docker: check host's stack compatibility by attempting to run in container and caching the result (#974) Fix formatting in `explicit-setup-deps` section Provide more information about changed files Compile custom Setup.hs instead of interpreting them (fixes #1041) Detect when hpc report gives trivial 100% #1009 Unified coverage report #579 Recommend extra-dep in yaml_configuration.yml ...
- Loading branch information
Showing
37 changed files
with
1,416 additions
and
534 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,16 +46,15 @@ settings: | |
* A list of subdirectories to build (useful for mega-repos like | ||
[wai](https://github.com/yesodweb/wai/) or | ||
[digestive-functors](https://github.com/jaspervdj/digestive-functors)) | ||
* Whether a package should be treated as a dependency, in which case it will only be built if demanded by a non-dependency, and its test suites and benchmarks will not be run. This is useful for tweaking an upstream package. | ||
* The current name for this is `valid-wanted`, which when `false` means "treat as a dependency." That's a confusing name choice, and therefore we're switching it to be `extra-dep: true` to mean "treat as dependency." You'll get a deprecation warning once that new naming is release. | ||
* Whether a package should be treated as a dependency: a package marked `extra-dep: true` will only be built if demanded by a non-dependency, and its test suites and benchmarks will not be run. This is useful for tweaking upstream packages. | ||
|
||
To tie this all together, here's an example of the different settings: | ||
|
||
```yaml | ||
packages: | ||
- local-package | ||
- location: vendor/binary | ||
valid-wanted: false | ||
extra-dep: true | ||
- location: | ||
git: [email protected]:yesodweb/wai | ||
commit: 2f8a8e1b771829f4a8a77c0111352ce45a14c30f | ||
|
@@ -291,3 +290,59 @@ pvp-bounds: none | |
``` | ||
|
||
For more information, see [the announcement blog post](https://www.fpcomplete.com/blog/2015/09/stack-pvp). | ||
|
||
### modify-code-page | ||
|
||
(Since 0.1.6) | ||
|
||
Modify the code page for UTF-8 output when running on Windows. Default behavior | ||
is to modify. | ||
|
||
```yaml | ||
modify-code-page: false | ||
``` | ||
|
||
### explicit-setup-deps | ||
|
||
(Since 0.1.6) | ||
|
||
Decide whether a custom `Setup.hs` script should be run with an explicit list | ||
of dependencies based on the dependencies of the package itself, or simply | ||
provided the global package database. This option is most often needed when | ||
overriding packages in the global database, see [issue #1110](https://github.com/commercialhaskell/stack/issues/1110). | ||
|
||
Setting the list explicitly can help when a Setup.hs depends on packages in the | ||
local package database. For more information on that case, see [issue #897](https://github.com/commercialhaskell/stack/issues/897). | ||
|
||
Note that in the future, this should all disappear once Cabal provides full | ||
support for explicit Setup.hs dependencies. | ||
|
||
```yaml | ||
explicit-setup-deps: | ||
"*": true # change the default | ||
entropy: false # override the new default for one package | ||
``` | ||
|
||
### rebuild-ghc-options | ||
|
||
(Since 0.1.6) | ||
|
||
Should we rebuild a package when its GHC options change? Before 0.1.6, this was a non-configurable true. However, in most cases, the flag is used to affect optimization levels and warning behavior, for which GHC itself doesn't actually recompile the modules anyway. Therefore, the new behavior is to not recompile on an options change, but this behavior can be changed back with the following: | ||
|
||
```yaml | ||
rebuild-ghc-options: true | ||
``` | ||
|
||
### apply-ghc-options | ||
|
||
(Since 0.1.6) | ||
|
||
Which packages do ghc-options on the command line get applied to? Before 0.1.6, the default value was `targets` | ||
|
||
```yaml | ||
apply-ghc-options: locals # all local packages, the default | ||
# apply-ghc-options: targets # all local packages that are targets | ||
# apply-ghc-options: everything # applied even to snapshot and extra-deps | ||
``` | ||
|
||
Note that `everything` is a slightly dangerous value, as it can break invariants about your snapshot database. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.