-
Notifications
You must be signed in to change notification settings - Fork 841
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
upgrade global packages #1899
Comments
I don't understand what you want that Note that you can do Feel free to reopen with more explanation. If this is about the global package DB, we want to avoid mutating that as it's shared amongst all uses of the compiler. |
I mean something like "npm upgrade -g": upgrade all the global packages, without having to do "stack install package1", "stack install package2", etc. to upgrade everything |
Ah, I see! Yes, others have wanted this as well - see the discussion here for why stack isn't really intended for this usecase, and how to use it for this. I've opened an issue with a potential way to streamline this usecase - #1904 . Shouldn't be very hard, but I think some other things should happen first. Essentially the only convenience this grants is that the #!/bin/sh
stack install package1 package2 If you are fine with skipping out on having the resolver determine the package version (such that specifying |
Is there any way to get a list of packages that get loaded when you are not in a project (but in global project instead)? Is it then from there possible to remove all dependencies from that list? That way you only get the packages of which you would need to type |
@flip111 Not sure I follow. The global project works exactly like a normal project, except that by default it has no local packages. It sounds like what y'all want here is #115 - having commands that automatically modify a project configuration. We could do this now, however, there's no good way to do it that preserves existing layout and comments |
@mgsloan in the other discussion you say
However when i run For example, i Can i get this list It's just an idea .. not sure if this will work .. |
True,
Also, note that for most packages |
You probably want to ignore packages from the global package DB (stuff that comes with GHC). You can do this by running the following two commands in bash:
|
thx @mgsloan next time i want to upgrade my global project i'll use that to grab the package list before i update the resolver
|
It turns out Stack is not a package manager. commercialhaskell/stack#1899 commercialhaskell/stack#1610 https://stackoverflow.com/q/49504206 https://lexi-lambda.github.io/blog/2018/02/10/an-opinionated-guide-to-haskell-in-2018/ Cabal (really cabal-install?) is not a package manager either, per its docs. As far as I can tell, something like Python's pip does not exist for Haskell. Despair. Thankfully, MacPorts has upped its Haskell game and now has the latest ShellCheck. It even has binaries! Rejoice!
There should be a way to upgrade globally installed packages (other than running "stack install mypackage" for each package).
The text was updated successfully, but these errors were encountered: