2
我使用yesod init
命令设置了yesod脚手架站点,并将其命名为yesodtry
。我开始安装使用该命令,它被赋予了脚手架网站由yesod init
:yesod测试 - 缺少依赖项yesod-test
cd yesodtry && cabal sandbox init && cabal install && yesod devel
一切顺利,我在127.0.0.1:3000
访问演示站点。出于好奇,我试图尝试yesod test
命令。下面是我得到的输出:
Resolving dependencies...
Configuring yesodtry-0.0.0...
cabal: At least the following dependencies are missing:
hspec -any, yesod-test ==1.2.*
眼看yesodtry.cabal
文件如何有test
部分,我试图执行cabal build test
,这是输出:
cabal: Cannot build the test suite 'test' because test suites are not enabled.
Run configure with the flag --enable-tests
好... ...它告诉我运行cabal configure --enable-tests
。而这里的输出:
Resolving dependencies...
Configuring yesodtry-0.0.0...
cabal: At least the following dependencies are missing:
hspec -any, yesod-test ==1.2.*
我看到yesodtry.cabal
此行,为test-suite test
“节”的build-depends
:
yesod-test >= 1.2 && < 1.3
好像阴谋这里不安装的依赖关系。我怎么做?
谢谢。