Skip to content

Commit

Permalink
Fix broken build on Windows
Browse files Browse the repository at this point in the history
> Error: While constructing the build plan, the following exceptions were encountered:
> In the dependencies for turtle-1.4.5:
>     Win32-2.5.4.1 from stack configuration does not match >=2.2.0.1 && <2.4 (latest matching version
>                   is 2.3.1.1)
> needed due to nirum-0.3.0 -> turtle-1.4.5
> Some potential ways to resolve this:
>   * Recommended action: try adding the following to your extra-deps
>     in C:\projects\nirum-k5n5y\stack.yaml:
> - Win32-2.3.1.1
>   * Set 'allow-newer: true' to ignore all version constraints and build anyway.
>   * You may also want to try using the 'stack solver' command.
> Plan construction failed.

[changelog skip]
  • Loading branch information
dahlia committed Mar 2, 2018
1 parent 7b3b80e commit 345f22b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ install:
- ps: >
if((Test-Path $env:STACK_ROOT) -ne $true) {
if($env:PLATFORM -eq 'x86') {
$stackUrl = 'https://www.stackage.org/stack/windows-i386';
$stackUrl = 'https://github.com/commercialhaskell/stack/releases/download/v1.6.5/stack-1.6.5-windows-i386.zip';
}
elseif($env:PLATFORM -eq 'x64') {
$stackUrl = 'https://www.stackage.org/stack/windows-x86_64';
$stackUrl = 'https://github.com/commercialhaskell/stack/releases/download/v1.6.5/stack-1.6.5-windows-x86_64.zip';
}
Invoke-WebRequest -OutFile C:\stack.zip $stackUrl;
Add-Type -AssemblyName System.IO.Compression.FileSystem;
Expand Down
7 changes: 6 additions & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ packages:
- '.'
extra-deps:
- uri-0.1.6.4
- Win32-2.6.2.0
## INSERT CODECOV HERE -- DO NOT REMOVE THIS COMMENT. SEE ALSO ISSUE #156. ##
extra-package-dbs: []
ghc-options:
"$locals": -fhide-source-paths
# http://hsyl20.fr/home/posts/2018-01-15-ghc-hiding-source-and-object-paths.html
require-stack-version: ">=1.6.5"

require-stack-version:
# CHECK: If we change the minimum version of Stack the download URLs in
# *appveyor.yml* file also should be updated.
">=1.6.5"

0 comments on commit 345f22b

Please sign in to comment.