Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite bootstrap.sh #6700

Closed
phadej opened this issue Apr 12, 2020 · 3 comments
Closed

Rewrite bootstrap.sh #6700

phadej opened this issue Apr 12, 2020 · 3 comments
Labels

Comments

@phadej
Copy link
Collaborator

phadej commented Apr 12, 2020

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.

@phadej phadej changed the title Rewrite boostrap.sh Rewrite bootstrap.sh Apr 12, 2020
@bgamari
Copy link
Contributor

bgamari commented Apr 19, 2020

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.

@bgamari bgamari mentioned this issue Apr 19, 2020
4 tasks
@bgamari
Copy link
Contributor

bgamari commented Apr 19, 2020

I gave this a quick shot in #6719.

@phadej
Copy link
Collaborator Author

phadej commented Jul 21, 2020

Continued in #6979

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants