fpco / stackage-cli

MIT License
28 stars 4 forks source link

stackage-setup: add each installed item to the PATH cumulatively over the setup #46

Closed DanBurton closed 9 years ago

DanBurton commented 9 years ago

After each successful install of $STACKAGE_ROOT/environment/$item/$item-$ver/, let PATH=$STACKAGE_ROOT/environment/$item/$item-$ver/bin/:$PATH.

This is only for the duration of the run of stackage-setup, so that later items can rely on earlier ones.

DanBurton commented 9 years ago

I accidentally discovered that the cabal bootstrap procedure apparently requires haddock to already be installed. I tested that -- with no haddock originally on my PATH -- it was able to successfully bootstrap cabal using this technique.