$ stack --version
Version 1.4.0, Git revision 5986498a9d1073e8d58c79ec1302bb2a7847a396 (4642 commits) x86_64 hpack-0.17.0
$ stack upgrade --git
Cloning stack
Cloning into 'stack'...
remote: Counting objects: 727, done.
remote: Compressing objects: 100% (536/536), done.
remote: Total 727 (delta 63), reused 452 (delta 33), pack-reused 0
Receiving objects: 100% (727/727), 717.10 KiB | 0 bytes/s, done.
Resolving deltas: 100% (63/63), done.
Checking connectivity... done.
Could not parse '/tmp/stack-upgrade40/stack/stack.yaml':
Aeson exception:
Error in $['extra-deps'][1]: failed to parse field 'extra-deps': expected PackageIdentifier, encountered Object
See http://docs.haskellstack.org/en/stable/yaml_configuration/
Good catch, I've opened https://github.com/commercialhaskell/stack/pull/3905 to resolve this.
Is there any way to workaround this currently?
I'm using stack 1.2, I can't even build "switch-to-old-extra-dep-style-3903" branch.
Could not parse '.../src/stack/stack.yaml':
Aeson exception:
Error in $.packages[1].location: failed to parse field 'packages': failed to parse field packages: failed to parse field 'location': failed to parse field location: failed to parse field 'hg': key "hg" not present
See http://docs.haskellstack.org/en/stable/yaml_configuration/.
EDIT: I've used the stack install script on the website to upgrade succesfully.
Do an update first
On Thu, Mar 15, 2018, 09:54 yihuang notifications@github.com wrote:
Is there any way to workaround this currently?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/commercialhaskell/stack/issues/3903#issuecomment-373303602,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAUtqX07UjE39BrBt1cgve-qLyHMfLzEks5teiuvgaJpZM4SezRj
.
Same issue here (upgrading from 1.2). @yihuang's suggestion worked for me as well, you just have to pass the -f flag as described here: https://docs.haskellstack.org/en/stable/install_and_upgrade/#upgrade
For some older versions, source upgrade might not work. The merge of https://github.com/commercialhaskell/stack/pull/3905 makes it work for some more recent historical versions.
Most helpful comment
Is there any way to workaround this currently?
I'm using stack 1.2, I can't even build "switch-to-old-extra-dep-style-3903" branch.
EDIT: I've used the stack install script on the website to upgrade succesfully.