Skip to content

parsonsmatt/stack-test-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#!/bin/bash

# This script demonstrates the bug.

# First, ensure that we're in a clean slate.
rm -rf .stack-work

# Now, try to open the test suite:
stack repl stack-test-bug:test:test

if [[ $? == 0 ]]; then
    echo
    echo Looks like the bug is fixed!
    exit
fi

# Just opening the library works.
stack repl --ghci-options "-e :quit"

if [[ $? == 0 ]]; then
    echo
    echo Running stack repl worked OK there.
    echo
fi

# If we do a build, then it works.
stack build

stack repl stack-test-bug:test:test --ghci-options "-e :quit"

if [[ $? == 0 ]]; then
    echo
    echo The initial build is required for the test, but not ordinary stack ghci!
    echo
fi

About

repro of stack repl failing to open a test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published