Skip to content

staversion fails because the list of GHC core packages is out of date for some new GHC versionsΒ #8

@ulidtko

Description

@ulidtko

Hi Toshio Ito! I hope you're well. Thanks for publishing this tool β€” much appreciated. πŸ™‡β€β™‚οΈ

Upon installing, I found that the most basic usage β€” querying available Stackage package versions a-la apt-cache show β€” is no longer functional. Specifically, I tried querying cabal-install, lens, conduit β€” on resolvers lts-18.17, lts-17.11. All variations produce the same ERROR, accompanied with 2 scary warnings about "build plan files" which I frankly fail to understand.

For example:

$ staversion --resolver lts-18.17 lens
[warn] Loading build plan for package resolver 'lts-18.17' failed: /home/ulidtko/.stack/build-plan/lts-18.17.yaml not found.
/home/ulidtko/.stack/build-plan/lts-18.17.yaml: openBinaryFile: does not exist (No such file or directory)
[warn] Loading build plan for package resolver 'lts-18.17' failed: /home/ulidtko/.stack/build-plan/lts-18.17.yaml not found.
/home/ulidtko/.stack/build-plan/lts-18.17.yaml: openBinaryFile: does not exist (No such file or directory)
[error] Failed to load build plan: No CoreBuildPlanMap for compiler Compiler {compilerName = "ghc", compilerVersion = CVNumbered (mkVersion [8,10,7])}
------ lts-18.17
-- lens ERROR

I installed the latest available version, staversion-0.2.4.1 β€” using stack install --local-bin-path ~/.local/bin staversion.

My stack tool is Version 2.7.3, Git revision 7927a3aec32e2b2e5e4fb5be76d0d50eddcc197f currently.

Hope that helps. Please drop me a line if you need more information to fix this; I'll also have it as an honor to validate your solution once it's ready. Best wishes!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions