yesodweb / yesod-scaffold

The Yesod scaffolding, with branches for different versions.
MIT License
75 stars 39 forks source link

stack new test yesod-postgres creates invalid .cabal file #178

Closed hyperpape closed 6 years ago

hyperpape commented 6 years ago

Running

 stack new test yesod-postgres
 cd test && stack build

which fails with:

Building all executables for `test' once. After a successful build of all of them, only specified executables will be rebuilt.
test-0.0.0: configure (lib + exe)
Configuring test-0.0.0...
There exist several components with the same name: 'test'. This is a bug in your .cabal file.
CallStack (from HasCallStack):
  error, called at libraries/Cabal/Cabal/Distribution/PackageDescription/Utils.hs:18:15 in Cabal-2.0.1.0:Distribution.PackageDescription.Utils

stack new test produces a project that can be built.

snoyberg commented 6 years ago

I'm OK with changing the test suite name to PROJECTNAME-test. Would you be interested in sending a PR?

hyperpape commented 6 years ago

Sounds good, I can probably do a PR.

snoyberg commented 6 years ago

Fixed by #181