When checking before adding hpack-dhall to stackage nightly, I found it failed one of the golden tests when following the procedure for adding a package:
# Build from the tarball on Hackage to check for missing files
$ stack unpack yourpackage && cd yourpackage-*
# Generate a pristine stack.yaml, adding any missing extra-deps
$ rm -f stack.yaml && stack init --resolver nightly --solver
# Build, generate docs, test, and build benchmarks
$ stack build --resolver nightly --haddock --test --bench --no-run-benchmarks
Generating stack.yaml with stack init was failing with:
$ rm -f stack.yaml && stack init --resolver nightly --solver
Looking for .cabal or package.yaml files to use to init the project.
Using cabal packages:
- ./
- test/golden/test-files/key/
- test/golden/test-files/key/empty-inferred/
- test/golden/test-files/key/import-local/
- test/golden/test-files/key/import-relative/
- test/golden/test-files/real-world/hpack/
- test/golden/test-files/real-world/stack/
Multiple .cabal files found in directory /.../hpack-dhall-0.5.0/test/golden/test-files/key/
: empty-package.cabal
, when-dependencies.yaml.cabal
, empty-package.yaml.cabal
, when-dependencies.cabal
I added --ignore-subdirs to filter out the *.cabal files of the golden tests.
When checking before adding
hpack-dhall
to stackage nightly, I found it failed one of the golden tests when following the procedure for adding a package:Generating
stack.yaml
withstack init
was failing with:I added
--ignore-subdirs
to filter out the*.cabal
files of the golden tests.The test that failed is
.dhall to dhall/stack
:The
stack.yaml
initialised fromhpack-dhall.cabal
is: