[GHC] #9606: Improve outdated ghc-pkg cache warning

#9606: Improve outdated ghc-pkg cache warning -------------------------------------+------------------------------------- Reporter: nh2 | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.10.1 Component: ghc-pkg | Version: 7.8.2 Keywords: | Operating System: Architecture: Unknown/Multiple | Unknown/Multiple Difficulty: Easy (less than 1 | Type of failure: hour) | None/Unknown Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Sometimes you get this: {{{ WARNING: cache is out of date: /home/user/.ghc/x86_64-linux-7.8.3/package.conf.d/package.cache. Use 'ghc-pkg recache' to fix }}} The warning is correct but a bit confusing, because running `ghc-pkg recache` does nothing here: It will by default update your global package DB, and the DB the warning is about will still be out of date. This seems to have frustrated others as well: https://gist.github.com/mcandre/5789498 I suggest we make the message more clear: `You might have to pass --user to update this cache file`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9606 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9606: Improve outdated ghc-pkg cache warning -------------------------------------+------------------------------------- Reporter: nh2 | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.10.1 Component: ghc-pkg | Version: 7.8.2 Resolution: | Keywords: Operating System: | Architecture: Unknown/Multiple Unknown/Multiple | Difficulty: Easy (less than 1 Type of failure: | hour) None/Unknown | Blocked By: Test Case: | Related Tickets: Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by simonpj): Sounds like a good idea to me. Would someone like to create and validate a patch? Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9606#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9606: Improve outdated ghc-pkg cache warning -------------------------------------+------------------------------------- Reporter: nh2 | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.12.1 Component: ghc-pkg | Version: 7.8.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: Phab:D658 -------------------------------------+------------------------------------- Changes (by thomie): * status: new => patch * differential: => Phab:D658 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9606#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9606: Improve outdated ghc-pkg cache warning
-------------------------------------+-------------------------------------
Reporter: nh2 | Owner:
Type: bug | Status: patch
Priority: normal | Milestone: 7.12.1
Component: ghc-pkg | Version: 7.8.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: None/Unknown | Unknown/Multiple
Blocked By: | Test Case:
Related Tickets: | Blocking:
| Differential Revisions: Phab:D658
-------------------------------------+-------------------------------------
Comment (by Austin Seipp

#9606: Improve outdated ghc-pkg cache warning -------------------------------------+------------------------------------- Reporter: nh2 | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.12.1 Component: ghc-pkg | Version: 7.8.2 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: Phab:D658 -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: patch => closed * resolution: => fixed Comment: Merged, thanks! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9606#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC