-
Notifications
You must be signed in to change notification settings - Fork 701
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
cabal install from a url doesn't work for libraries #8335
Comments
Thank you for the report. I guess |
Yes
|
Oh, so that's one more thing to implement before it can replace |
the non trivial but doable workaround could be |
for completeness the issue about replacing install lib would be #6481 |
I'm happy installing from a folder but am looking for an easy one-liner for users of the tidal package to try out prereleases. Most such users are unfamiliar with the commandline, and could be on windows, macos or linux. Generally the v2- commands are unreliable for such people, who easily end up with a broken system that can take them days to sort out if they ever manage it.. Even if they're attempting something as simple as upgrading tidal on an otherwise working system. |
Right, that's a shame.
Doesn't the good old wiping out of ~/.cabal/store and of the local working directory always work? |
Deleting .cabal and .ghc is common advice to start again from a clean slate, but again many users will be unfamiliar with the commandline and the concept of hidden files, getting such people to run an rm -rf command is stressful and extremely dangerous (add a space between . and cabal? whoops), and the location on windows machines is elsewhere. |
v2- has the advantage that it's only .cabal now. However, if I'm not mistaken, you also need to remove
Perhaps they would be more comfortable with a file manager default to that OS if given a single path to remove?
That's indeed a snag in v2- due to the Anyway, a shame indeed that we need to work on workarounds. instead of testing a fix. Where did #6481 stall exactly? Users not satisfied with the proposed functionality or nobody willing to implement it (any more)? IIRC there was a plan to test |
Yes although getting the file manager to show hidden folders is not straightforward either. Note that tidal users don't generally use any other libraries so only need the one 'global' environment.
I'm not sure, maybe just free/open source work overload. I'm very grateful for any work on this. |
Oh, I didn't know that ~/.cabal is called |
Apologies, I linked to here from an unrelated ticket due to off-by-one error. :) |
I'm a linux person myself so am hazy on the details of other systems as well.. |
I'm surprised that it even installs the executable in the first place, given #7360 |
The latter. Nobody offered to implement it yet. I would if I had the spare time (or if someone paid me to do it ;) ) There's also the issue of |
well, the workaround is a "one-liner" too, only longer 😝 mainly joking, but imo if you gives an easy way to copy the one liner, I think the size will not matter so much (take a look for the "one-liner" for installing ghcup and people seems to be happy with)
I am afraid that drawback will be shared by a hypothetical working If you want install globally the lib you should remove the |
Compatibility across windows and unix is tricky, though. |
I am developing on windows and that one liner works in raw cmd. It also works on linux sh. |
Describe the bug
cabal install
with the--lib
flag and a URL doesn't work, it tries to install an executable instead. This makes testing candidate releases more difficult.To Reproduce
Steps to reproduce the behavior:
System information
cabal 3.6.2.0
,ghc 9.2.3
The text was updated successfully, but these errors were encountered: