Skip to content
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

WIP: Better boot lib version scraping #109

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bergmark
Copy link
Member

@bergmark bergmark commented Aug 8, 2022

Ben suggested that we could use https://gitlab.haskell.org/bgamari/ghc-utils/-/raw/master/library-versions/pkg_versions.txt over at https://discourse.haskell.org/t/ghc-9-4-1-rc1-is-now-available/4817/18, rather than scraping the user guide.

Unfortunately the Win32 version is missing there as well!

Copy link
Contributor

@snoyberg snoyberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I'm happy with the overall direction, feel free to merge whenever you're ready.

@juhp juhp requested a review from mpilgrem January 3, 2024 14:47
, ver'
, "-notes.html"
] where ver' = fromMaybe ver (T.stripPrefix "ghc-" ver)
url _ = "https://gitlab.haskell.org/bgamari/ghc-utils/-/raw/master/library-versions/pkg_versions.txt"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In respect of this URL, looking at https://gitlab.haskell.org/bgamari/ghc-utils/-/tree/master/library-versions, I think things have moved on. When I put this URL into my browser, I get a 404 error.

@mpilgrem
Copy link
Member

mpilgrem commented Jan 4, 2024

I've not been using any script. I manually:

  • copy-paste the existing entry for the previous version of GHC;
  • look at stack exec -- ghc-pkg list on Windows (for the relevant version of GHC) to see what needs to be changed;
  • cross-check the results with the content of the relevant GHC User's Guide, to catch the Linux-specific packages, and to act as a form of quality assurance; and
  • try to remember that anything that parses as a YAML number needs to be put in quotes as a YAML string.

As manual tasks go, this is a pretty minor one. It probably takes me less than 10 mins, all told.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants