Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with stack upgrade #1477

Closed
FranklinChen opened this issue Dec 7, 2015 · 4 comments
Closed

Problem with stack upgrade #1477

FranklinChen opened this issue Dec 7, 2015 · 4 comments

Comments

@FranklinChen
Copy link

I am using an ancient Mac OS X laptop where the Stack dependency cryptonite requires me to pass a custom flag to Cabal haskell-crypto/cryptonite#21 but I don't know how to pass this flag to stack upgrade. (Note that this laptop is sufficiently old that I cannot just download and use the prebuilt binary for Stack for more modern OS X, but have to build Stack from source.) Without the flag, I cannot do stack upgrade.

How do I hook in the config into stack upgrade?

  cryptonite:
    support_aesni: false
@luigy
Copy link
Contributor

luigy commented Dec 7, 2015

hmm I don't think there is support for that but I always build my stack executable from repo clone and another alternative would also be to use stack unpack:

stack unpack stack-0.1.10.0
cd stack-0.1.10.0
stack install --flag cryptonite:-support_aesni

you wouldn't have to use package version to have it always download latest (ala stack upgrade) but currenlty stack would pick up deprecated versions #1391

@mgsloan
Copy link
Contributor

mgsloan commented Dec 7, 2015

It wouldn't be too strange to add the build options to upgrade. At once, I like that stack upgrade --help is so simple. Adding all the build options would make it more complicated.

I'm thinking that for this (hopefully) rare case, @luigy's solution is sufficient. So, closing as wontfix.

@FranklinChen
Copy link
Author

Yeah, this is a rare case. I've been building from source this whole time so it's not a showstopper that stack upgrade.

@mgsloan mgsloan closed this as completed Dec 7, 2015
@FranklinChen
Copy link
Author

For reference, in case anyone needs a bootstrapped stack executable for old Mac OS X, I put one up: https://github.com/FranklinChen/haskell-stack-for-old-mac-os-x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants