문제

I'm trying to install a yesod web application, however, one of the listed dependencies has compile-time errors as-is from Hackage. So, I downloaded the offending source, fixed it, and installed it in its own cabal-dev sandbox.

~/dev/fixed_dep$ cabal-dev install

Then I tried to install the yesod app I care about on top of that, so it would hopefully notice the fixed dependency and not try to reinstall it from Hackage:

~/dev/yesod_app$ cabal-dev install-deps -s../dev/fixed-dep/cabal-dev
~/dev/yesod_app$ yesod --dev devel

However, upon running the development server, it claims it can't find any of the dependencies.

Any ideas how to fix this mess? (*)

Thanks!

(*) I pushed the compile-error patch to the author's github and I imagine it will show up sooner or later on Hackage, however, I'd like to know how to fix this cabal-dev issue regardless, if it's possible!

도움이 되었습니까?

해결책

Thanks to @Thomas M. DuBuisson, this did the trick:

~/dev/yesod_app$ cabal-dev add-source ~/dev/the_dependency_folder

Where the_dependency_folder contains the .cabal file of the fixed local package to include with the main Yesod web app's cabal-dev install.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top