[Haskell-cafe] cannot upgrade stack

Michael Snoyman michael at snoyman.com
Wed Jul 18 12:26:12 UTC 2018

The problem here is that:

* You're on an OS that doesn't have prebuilt binaries (FreeBSD 32-bit)
* The version you're using (1.5.1) isn't compatible with the newer syntax
used in the stack.yaml file for 1.7.1[1]

I'll need to upgrade in two steps: first upgrade to 1.6.1, then to 1.7.1
using that Stack. Something like this should work:

$ git clone https://github.com/commercialhaskell/stack --branch v1.6.1
$ cd stack
$ stack install
# make sure you're using the new stack 1.6.1 binary
$ stack upgrade
# or
$ git checkout v1.7.1
$ stack install


[1] Even if you removed that new syntax, you'll end up running into the
cassava flag bug, so no shortcuts here

On Wed, Jul 18, 2018 at 3:13 PM Roger Mason <rmason at mun.ca> wrote:

> Hello,
> I'm attempting to upgrade stack on a FreeBSD 11.1 system but it fails:
> stack upgrade
> Current Stack version: 1.5.1, available download version: 1.7.1
> Newer version detected, downloading
> Querying for archive location for platform: freebsd-i386-static
> Querying for archive location for platform: freebsd-i386
> Exception occured when trying to perform binary upgrade:
> Unable to find binary Stack archive for platforms: freebsd-i386-static
> freebsd-i386
> Falling back to source upgrade
> Selected mirror https://s3.amazonaws.com/hackage.fpcomplete.com/
> Downloading timestamp
> No updates to your package list were found
> Updating package index Hackage (mirrored at
> https://s3.amazonaws.com/hackage.fpcomplete.com/) ...Could not parse
> '/tmp/stack-upgrade2294/stack-1.7.1/stack.yaml':
> Aeson exception:
> Error in $['extra-deps'][0]: failed to parse field 'extra-deps': (Invalid
> package identifier: "rio- at rev:0","rio- at rev:0")
> See http://docs.haskellstack.org/en/stable/yaml_configuration/
> If it matters, I'm using ghc-8.0.2_3.
> Thanks for any help,
> Roger
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20180718/ccf9240c/attachment.html>

More information about the Haskell-Cafe mailing list