payload: {"action":"created","issue":{"url":"https://api.github.com/repos/haskell/haskell-ide-engine/issues/1380","repository_url":"https://api.github.com/repos/haskell/haskell-ide-engine","labels_url":"https://api.github.com/repos/haskell/haskell-ide-engine/issues/1380/labels{/name}","comments_url":"https://api.github.com/repos/haskell/haskell-ide-engine/issues/1380/comments","events_url":"https://api.github.com/repos/haskell/haskell-ide-engine/issues/1380/events","html_url":"https://github.com/haskell/haskell-ide-engine/issues/1380","id":489124308,"node_id":"MDU6SXNzdWU0ODkxMjQzMDg=","number":1380,"title":"shake install with cabal shouldn't depend on having stack installed","user":{"login":"jneira","id":54035,"node_id":"MDQ6VXNlcjU0MDM1","avatar_url":"https://avatars1.githubusercontent.com/u/54035?v=4","gravatar_id":"","url":"https://api.github.com/users/jneira","html_url":"https://github.com/jneira","followers_url":"https://api.github.com/users/jneira/followers","following_url":"https://api.github.com/users/jneira/following{/other_user}","gists_url":"https://api.github.com/users/jneira/gists{/gist_id}","starred_url":"https://api.github.com/users/jneira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jneira/subscriptions","organizations_url":"https://api.github.com/users/jneira/orgs","repos_url":"https://api.github.com/users/jneira/repos","events_url":"https://api.github.com/users/jneira/events{/privacy}","received_events_url":"https://api.github.com/users/jneira/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-09-04T12:17:28Z","updated_at":"2019-09-04T12:48:58Z","closed_at":null,"author_association":"COLLABORATOR","body":"* Currently running the shake install with cabal [needs stack to get the `symlink-bindir`/`installdir`](https://github.com/haskell/haskell-ide-engine/blob/master/install/src/Cabal.hs#L44)\r\n* We can't simply fallback to the value in global cabal config cause install needs it to copy hie executables [prefixed with versions](https://github.com/haskell/haskell-ide-engine/blob/master/install/src/Cabal.hs#L53-L56) and afaik there is no a simple way to get the actual value of `symlink-bindir`/`installdir` from global cabal config\r\n\r\n\r\n* A 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 location \r\n* Another 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\"` \r\n  * It would be a improvement itself but it would add complexity to build\r\n\r\n//cc @power-fungus \r\n"},"comment":{"url":"https://api.github.com/repos/haskell/haskell-ide-engine/issues/comments/527885434","html_url":"https://github.com/haskell/haskell-ide-engine/issues/1380#issuecomment-527885434","issue_url":"https://api.github.com/repos/haskell/haskell-ide-engine/issues/1380","id":527885434,"node_id":"MDEyOklzc3VlQ29tbWVudDUyNzg4NTQzNA==","user":{"login":"jneira","id":54035,"node_id":"MDQ6VXNlcjU0MDM1","avatar_url":"https://avatars1.githubusercontent.com/u/54035?v=4","gravatar_id":"","url":"https://api.github.com/users/jneira","html_url":"https://github.com/jneira","followers_url":"https://api.github.com/users/jneira/followers","following_url":"https://api.github.com/users/jneira/following{/other_user}","gists_url":"https://api.github.com/users/jneira/gists{/gist_id}","starred_url":"https://api.github.com/users/jneira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jneira/subscriptions","organizations_url":"https://api.github.com/users/jneira/orgs","repos_url":"https://api.github.com/users/jneira/repos","events_url":"https://api.github.com/users/jneira/events{/privacy}","received_events_url":"https://api.github.com/users/jneira/received_events","type":"User","site_admin":false},"created_at":"2019-09-04T12:48:58Z","updated_at":"2019-09-04T12:48:58Z","author_association":"COLLABORATOR","body":"Oh, i've forgotten to mention the better (?) solution: make three calls to `cabal v2-install`:\r\n* `cabal v2-install exe:hie`\r\n* `cabal v2-install exe:hie --program-suffix=-8.6`\r\n* `cabal v2-install exe:hie --program-suffix=-8.6.5`\r\n\r\nBut `cabal v2-install` doesn't honour it for version `3.0.0.0`, we would have to wait for [@fendor pr](https://github.com/haskell/cabal/pull/6207) to fix it and we only could remove the dependency for cabal versions including the fix.\r\nNot sure if it will work with symlinks though :thinking: "}}
other: {"actor":{"display_login":"jneira"}}