[GHC] #12637: ghc-pkg: Allow unregistering multiple packages in one call

#12637: ghc-pkg: Allow unregistering multiple packages in one call -------------------------------------+------------------------------------- Reporter: nh2 | Owner: Type: feature | Status: new request | Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- This can save lots of time when the cost to invoke a single GHC command is high, for example through docker. An example user of this would be `stack build`, which will unregister all relevant packages if e.g. `--extra-lib-dirs` has changed. Currently it has to do that through multiple `ghc-pkg unregister` operations, which can take about 2 seconds per call when done through a docker image. If we could unregister multiple packages at once, such use cases would have to pay the 2 seconds penalty only once. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12637 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12637: ghc-pkg: Allow unregistering multiple packages in one call -------------------------------------+------------------------------------- Reporter: nh2 | Owner: Type: feature request | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): D2550 Wiki Page: | -------------------------------------+------------------------------------- Changes (by nh2): * status: new => patch * differential: => D2550 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12637#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12637: ghc-pkg: Allow unregistering multiple packages in one call -------------------------------------+------------------------------------- Reporter: nh2 | Owner: Type: feature request | Status: patch Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): D2550 Wiki Page: | -------------------------------------+------------------------------------- Comment (by nh2): This turns out quite easy, I've attached a patch. In a future iteration of this, it would be a nice-to-have if it could automatically figure out in which order to unregister, but that's for later. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12637#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12637: ghc-pkg: Allow unregistering multiple packages in one call
-------------------------------------+-------------------------------------
Reporter: nh2 | Owner:
Type: feature request | Status: patch
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): D2550
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari

#12637: ghc-pkg: Allow unregistering multiple packages in one call -------------------------------------+------------------------------------- Reporter: nh2 | Owner: Type: feature request | Status: closed Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.0.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): D2550 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: patch => closed * resolution: => fixed * milestone: => 8.2.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12637#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12637: ghc-pkg: Allow unregistering multiple packages in one call -------------------------------------+------------------------------------- Reporter: nh2 | Owner: Type: feature request | Status: closed Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.0.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): D2550 Wiki Page: | -------------------------------------+------------------------------------- Comment (by rwbarton): Well okay, but I can't help but feel that the problem here is not in GHC, but in your infrastructure... :) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12637#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC