-
Notifications
You must be signed in to change notification settings - Fork 211
shake install with cabal shouldn't depend on having stack installed #1380
Comments
Everyone wants this feature for a long time, including myself. I still cannot believe that As far as I understand the current situation, the I am in favor of any approach that makes the situation better, however, we should be careful when adding non-trivial extra steps to the install-process. This might be necessary, but should not be taken lightly |
Oh, i've forgotten to mention the better (?) solution: make three calls to
But |
yes, this will hopefully remove the problem altogether. However, depending on how many versions of cabal-install we'd like to support, a work around might be necessary for previous versions. |
Well it think it is in |
Using |
Alternatively, we could replace the call to |
Yeah, i think it is not worse that use stack one. Not sure if it is much better than installing in a relative dir OTOH, I think there is not a path in windows for installing binaries that always is in |
I think a possible solution would be |
Where does |
In windows is
Change it would depend on user rights and i bet there would be problems, so maybe |
We really shouldn't mess around with a user's |
I think we could mirror the approach from
Out of curiosity, where does |
In windows it uses
(like in linux, right?) |
my global config is |
@power-fungus it is configured in $HOME/.cabal/config |
Related cabal issue: haskell/cabal#5973 |
@jneira hvr told me today of https://hackage.haskell.org/package/cabal-install-parsers-0.2/ which would eliminate our usage of stack, imo. e.g. https://hackage.haskell.org/package/cabal-install-parsers-0.2/docs/Cabal-Config.html#t:Config |
That is a promising path, although i am a little bit worried by the package dependency |
Yeah, that is worrisome. But we are demanding that for windows already... so... eh? Could also do a CPP instruction to support both, somewhat. |
Currently running the shake install with cabal needs stack to get the
symlink-bindir
/installdir
We can't simply fallback to the value in global cabal config cause install needs it to copy hie executables prefixed with versions and afaik there is no a simple way to get the actual value of
symlink-bindir
/installdir
from global cabal configA possible solution would be fallback to a relative to cwd
./bin
path but it will make users to copy manually the executables to the final locationAnother solution would be add options to shake install to let users do somethink like
cabal v2-run install.hs -- hie-8.6.5 --cabal-options="--installdir=path"
//cc @power-fungus
The text was updated successfully, but these errors were encountered: