Skip to content

bootstrap: Use dependencies.txt to list packages #176

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions _test/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ fi
if [ ! -z "$CABALVER" ]; then
export PATH=/opt/cabal/${CABALVER}/bin:$PATH
fi

# What directory is this script in?
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

deps=$(
cut -d: -f2 "$DIR/dependencies.txt" |
xargs echo |
tr " " "\n" |
sort |
uniq |
# Exclude packages included in GHC
grep -v 'base\|array\|containers\|time'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a "wat". how can we improve this? I would not like have to hard-code these.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this behavior is by design. When you ask for a simple package, it will try to install the newest one possible. If you supply multiple packages, it will try to satisfy all restrictions at the same time.

You should probably use a single cabal install.

)

cabal update
# This is a fairly minimal set
cabal install \
primitive \
random \
tf-random \
HUnit \
QuickCheck \
split \
text \
bytestring \
attoparsec \
vector \
parallel \
stm \
old-locale \
lens

echo "$deps" | xargs cabal install