mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-01-12 23:38:29 +01:00
22 lines
455 B
Bash
Executable File
22 lines
455 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Convenience script for checking constraints locally
|
|
|
|
set -euxo pipefail
|
|
|
|
cd `dirname $0`
|
|
|
|
MAJOR=$1
|
|
MINOR=$2
|
|
LTS="lts-$MAJOR.$MINOR"
|
|
|
|
echo "$MAJOR $MINOR $LTS"
|
|
|
|
export GHCVER=$(sed -n "s/^ghc-version: \"\(.*\)\"/\1/p" "lts-$MAJOR-build-constraints.yaml")
|
|
|
|
curator update &&
|
|
curator constraints --target=$LTS &&
|
|
curator snapshot-incomplete --target=$LTS &&
|
|
curator snapshot &&
|
|
stack --resolver ghc-$GHCVER exec curator check-snapshot
|