Skip to content

Changelog for Cabal 3.12 is missing mention of error codes #10086

Description

@BinderDavid

I mentioned this in the matrix channel and was prompted to open an issue:

The prerelease changelogs for cabal 3.12 do not mention that cabal now emits unique error codes in the style Cabal-xxxxx. This should be changed in view of #9885

Activity

  1. geekosaur commented on Jun 19, 2024

    @geekosaur
    Collaborator

    I'm working on the 3.12.1.0 changelogs.

    The Cabal library also had error codes added, which are not noted in the 3.12.0.0 changelog. Should I retroactively add it there, or add it to the 3.12.1.0 changelog with a note that they actually appeared in 3.12.0.0?

  2. ulysses4ever commented on Jun 19, 2024

    @ulysses4ever
    Collaborator

    My proposal would be to do both:

    • fix notes for Cabal-3.12.0.0
    • put it into notes for cabal-install-3.12.1.0
  3. linked a pull request that will close this issueChangelogs for 3.12.1.0 #10124on Jun 19, 2024
  4. Mikolaj commented on Jun 20, 2024

    @Mikolaj
    Member

    BTW, if the error codes are not in the changelog, it's probably because of this lower case "cabal" here: https://github.com/haskell/cabal/pull/9018/files#diff-af2626c83a197fa0d9bc54cd3aa108406e5a74dea0418e0f4159c5b3b36bc202

    PR welcome that makes the changelog.d tool maintained by @fgaz ignore case (and another PR that makes it actually check for known packages and fail so that we can catch this in CI, as suggested by @geekosaur).

  5. ulysses4ever commented on Jun 20, 2024

    @ulysses4ever
    Collaborator

    I don't like the idea of making the tool case insensitive to the package names. I'd prefer there was a way to specify known packages in the config file, so that the tool fails when it sees something unknown.

  6. geekosaur commented on Jun 20, 2024

    @geekosaur
    Collaborator

    That's actually my current plan; I intend to look into it after the release.

  7. geekosaur commented on Jun 21, 2024

    @geekosaur
    Collaborator

    Interesting, this didn't get autoclosed. The changelog for 3.12.1.0 mentions the new error codes and the fact that it was actually in 3.12.0.0, and retrofits it into the 3.12.0.0 changelog.

  8. geekosaur commented on Jul 5, 2024

    @geekosaur
    Collaborator

    https://codeberg.org/fgaz/changelog-d/pulls/13 fwiw
    Tested locally, works unchanged if I don't add packages to changelog.d/config, correctly reports problems with command line-specified packages and packages in changelog.d files if I do add them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions