Skip to content

RFC consider including identifying infos from ghc --info in nix-style hash #5116

Open

Description

@hvr

An annoying issue when working with GHC HEAD or other custom GHCs is that they tend to have overlapping GHC version numbers if you build multiple versions of GHC on the same day.

One important identifying detail however if provided by ghc --info: the git commit id from which a GHC executable was derived, e.g.

"Project Git commit id","0156a3d815b784510a980621fdcb9c5b23826f1e"

In future, maybe Hadrian could provide additional identifying fingerprints to disambiguate different GHC builds from each other.

But I think introducing the Git commit id would already help avoiding a class of subtle ABI incompatibilties between GHC snapshots sharing the same version number.

Activity

  1. added
    cabal-install: v2-build system
    on Feb 14, 2018
  2. 23Skidoo commented on May 15, 2018

    @23Skidoo
    Member

    Makes sense.

  3. Ericson2314 commented on Oct 26, 2018

    @Ericson2314
    Collaborator

    @ElvishJerricco pointed me here seeing my related idea from https://ghc.haskell.org/trac/ghc/ticket/11042#comment:31 where $CC -Wl,--trace be used to extra the location of all system libraries. I suppose actually doing that (vs relying on it being done) would be Cabal's job? This would likewise make the InstalledPackageInfo (and it's hashes) better reflect non-cabal-managed dependencies.

  4. ElvishJerricco commented on Oct 26, 2018

    @ElvishJerricco

    Yea I consider this extremely-nice-to-have. Not blocking anything significant, but I'd rejoice at its implementation.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    cabal-install: v2-build systemre: installed-package-infotype: discussiontype: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions