Skip to content

Bump Cabal library version number every time the LBI binary format changes #3181

Closed

Description

@23Skidoo

Quoting @ezyang in #2114 (comment):

[...] I'd prefer it if we could figure out how to get Travis to bleat if you change any of the binary formats. Here's a proposal:

  1. For every data structure which has a binary format which is shared across the Cabal/cabal-install boundary, we keep checked in a binary serialized version of it based on some sentinel value (it could be mempty, or it could be a custom value we write for each of them.)
  2. We add a script to re-generate these binary serialized versions and admonishes you to bump the version.
  3. Travis checks if this binary serialized version has changed (similar to the current misc script for checking if other-files is correct.)

FWIW, we should NOT bump the patch level, this is a BC-incompatible change so we should bump the appropriate number.

NB: this is about the version numbers of development snapshots, released versions are guaranteed to be binary compatible. As a palliative we can bump the version number manually every time a GHC RC is released for now.

Also we should bump the Cabal version number every time an option gets added to Setup configure/build/... that cabal-install might want to use. See filterConfigureOptions & filterBuildOptions.

Activity

  1. added this to the milestone on Feb 22, 2016
  2. changed the title [-]Bump the Cabal version number every time the LBI binary format changes[/-] [+]Bump the Cabal library version number every time the LBI binary format changes[/+] on Feb 24, 2016
  3. changed the title [-]Bump the Cabal library version number every time the LBI binary format changes[/-] [+]Bump Cabal library version number every time the LBI binary format changes[/+] on Feb 24, 2016
  4. modified the milestone: Cabal 2.0 on Sep 6, 2016
  5. Mikolaj commented on May 25, 2022

    @Mikolaj
    Member

    I'm about to make a new release. Is this still relevant? I bet we lost the CI check for that long ago (when Travis died). When exactly should we bump what?

  6. Mikolaj commented on Feb 23, 2023

    @Mikolaj
    Member

    I'm again about to make a cabal new release (3.10). Is this still relevant? If not, I'm going to close.

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