Recompilation avoidance doesn't work with addCorePlugin
Summary
Please read the guidance in [https://gitlab.haskell.org/ghc/ghc/-/wikis/report-a-bug] and write a brief description of the issue.
Steps to reproduce
I made a separate repository to demonstrate/reproduce the issue https://github.com/Unisay/plugin-recomp-repro
Expected behavior
I expect that changes in a GHC Plugin to cause recompilation of modules that depend on it via addCorePlugin
Environment
- GHC version used: 9.4.8 (likely newer versions too, but I didn't check)
Optional:
- Operating System: Linux
- System Architecture: x86_64