Skip to content

Rewrite bootstrap.sh #6700

Closed
Closed

Description

@phadej

It should have:

  • hardcoded lists of dependencies per GHC (and platform)
  • bail out for unsupported combinations

These lists should be autogenerated, with help of cabal-plan (I have done something close in spirit in https://github.com/phadej/cabal-extras/tree/master/cabal-bundler so I know it's possible).

It should also check the hashes of .tar.gz and revision .cabal files downloaded (cabal-bundler does that).

Why so? Because bootstrap.sh is largely not maintained. We test it with single ghc-compiler version. Much better would be if it was "correct by construction".


The script should always work with self-created ghc-pkg init package database (which is called sandbox in current script).


It should not generate documentation, when there's working cabal-install, one could iterate to get it. Same applies for anything extra. bootstrap.sh purpose is to get first working version on platform where there are no (older) cabal-install. All other use-cases are out-of-scope.

Activity

  1. changed the title [-]Rewrite boostrap.sh[/-] [+]Rewrite bootstrap.sh[/+] on Apr 12, 2020
  2. bgamari commented on Apr 19, 2020

    @bgamari
    Contributor

    I would imagine it would also be helpful to write it in a language that isn't bash. This is the sort of thing I usually fall back onto Python for.

  3. bgamari commented on Apr 19, 2020

    @bgamari
    Contributor

    I gave this a quick shot in #6719.

  4. phadej commented on Jul 21, 2020

    @phadej
    CollaboratorAuthor

    Continued in #6979

  5. reopened this on Jul 21, 2020
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions