Closed varosi closed 5 years ago
Thanks for the report. That does seem like a good point, we try to handle other build tools automatically, but cabal-install we don't.
I'm not sure if there's a good reason for that or if it's something that could be improved. I can't think of any reason it couldn't be done automatically offhand. The logic might not be as trivial as just using whatever one the resolver specifies though, I'm not sure if packages in a resolver are required to be buildable with the cabal-install that's also in the same resolver.
Edit: some resolvers won't even have cabal-install in them of course, though if that's the only blocker we could just bail in that case and let the user deal with it.
I think the reason for this is that when init
is running, we haven't set up a stack environment yet. When the resolver is specified, it does make sense to me to include it on the PATH. Interesting special case!
So yeah, I'm in favor of doing this. It should be a straightforward change - PRs appreciated!
Hello @mgsloan , I am new to the project and would like to work on this issue. Could you point me the right direction to start?
We've removed the solver support in #4670
Steps to reproduce
Expected
What you expected to see and happen.
Actual
It's strange that it doesn't use sandboxed cabal that it has access to. I giving it a concrete resolver, too. So it should know which cabal to use. It's not good idea to install cabal outside Stack infrastructure in my opinion.
Stack version
Method of installation