Skip to content

No bootstrap files in Hackage cabal-install tar ball #7289

Open

Description

@blackgnezdo

Describe the bug

cabal-install-3.4.0.0.tar.gz as distributed on hackage doesn't include bootstrap directory.

These files are very useful when bootstrapping cabal-install without having a previous version handy, e.g. in my OpenBSD port. I was previously using an rc-tagged bundle on github and hoping to change the dependency to Hackage instead.

Expected behavior

Enough files available on Hackage to build all of cabal-install.

System information

  • OpenBSD
  • cabal-3.4.0.0, ghc-8.10.3

Activity

  1. chenrui333 commented on Feb 22, 2021

    @chenrui333

    Just to echo here, the bootstrap.py file is not part of the cabal-install-3.4.0.0.tar.gz

  2. arrowd commented on Mar 5, 2021

    @arrowd
    Collaborator

    Bumped into this problem too when updating FreeBSD port of cabal-install. Can we get the script back?

  3. ciez commented on Mar 17, 2021

    @ciez

    @arrowd
    looks like bootstrap.sh is gone for good.

    See #6701 and #6719

  4. ambs commented on May 5, 2021

    @ambs

    Probably rewrite README.md, then?

  5. fgaz commented on May 5, 2021

    @fgaz
    Member

    @ambs what's wrong with the readme?

  6. ambs commented on May 5, 2021

    @ambs

    README.md refers to the bootstrap.sh file. If it is not shipped, we should not refer to it :)

  7. fgaz commented on May 5, 2021

    @fgaz
    Member

    @ambs could you link to the specific line where we mention bootstrap.sh? I can't find it

  8. ambs commented on May 5, 2021

    @ambs
  9. fgaz commented on May 5, 2021

    @fgaz
    Member

    Indeed we are! The readme is fixed on master. Changing the one on hackage would require a release

  10. ambs commented on May 5, 2021

    @ambs

    Yeah, common mortals prefer to use releases. :-)
    Also, it looks like the version in master suggests a folder named bootstrap (?), which doesn't exist in the released tarball as well.
    So probably we are really needing a release!
    Or will the bootstrap folder be only available in the git?
    Probably clarifying would make sense. I will use the git version, nevertheless. Thanks!

  11. ambs commented on May 5, 2021

    @ambs

    And extra detail, bootstrap-deps.json seems to be missing from the master tree?

  12. gbaz commented on Jul 10, 2021

    @gbaz
    Collaborator

    What remains to be done to resolve this?

  13. arrowd commented on Jul 12, 2021

    @arrowd
    Collaborator

    The bootstrap script should be distributed with Hackage tarball.

  14. 7 remaining items

  15. blackgnezdo commented on May 28, 2022

    @blackgnezdo
    ContributorAuthor

    FWIW, OpenBSD port packages its own openbsd.json. It's easy enough to regenerate and keep around. Hence from my point of view bootstrap.py is enough. Then again, I switched to grabbing a tagged version straight off github even if this is not exactly a release.

  16. arrowd commented on May 29, 2022

    @arrowd
    Collaborator

    FWIW, OpenBSD port packages its own openbsd.json. It's easy enough to regenerate and keep around. Hence from my point of view bootstrap.py is enough. Then again, I switched to grabbing a tagged version straight off github even if this is not exactly a release.

    Well, yes. We at FreeBSD patch the existing .json, but it is indeed easier to provide our own, because shipped .json files are usual out of date and lacking behind GHC releases.

  17. Mikolaj commented on May 30, 2022

    @Mikolaj
    Member

    [Edit: the below is now fixed]:
    BTW, let me turn your attention to #8166. Something has broken with the creation of bootstrap files (let's hope, something trivial). So we are going to be stuck with the old bootstrap files until this is fixed.

  18. Mikolaj commented on Feb 22, 2024

    @Mikolaj
    Member

    Hi there! In the heat of the battle, this request has been ignored and then re-assigned to the upcoming release 3.12.

    Is bundling bootstrap.py inside the Hackage package cabal-install (and symlinking to it from the bootstrap/ directory), but not bundling the .json files, still useful for anybody? IMHO, if your scripts get it from the repo, that may be the safest option. I don't even know if symlinks work on Windows. It would be unfortunate if you updated your scripts to get bootstrap.py from Hackage and then we had to revert the location back to bootstrap/ due to a random fallout.

  19. ulysses4ever commented on Feb 22, 2024

    @ulysses4ever
    Collaborator

    I don't see a reason to prefer Hackage to GitHub for getting these script and JSON files. And the change is prone to all sorts of dangers as Mikolaj points out above.

    Also, priority: high is not adequate imo.

  20. blackgnezdo commented on Feb 23, 2024

    @blackgnezdo
    ContributorAuthor

    Considering how long this went unpatched I can't justify this being a high priority item. A reason to prefer the official hackage release is just that: it's official. My guessing at the right tag and relying on github to package up the bundle is somewhat less reliable. It's somewhat ironic, that the key GitHub used to sign the latest release is GPG key ID: 4AEE18F83AFDEB23
    Expired

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions