简体   繁体   English

为cabal文件中的依赖项指定github URL

[英]Specify a github url for a dependency in a cabal file

The HDBC-mysql package is currently broken for me. HDBC-mysql包目前正在为我打破。 The fix is in this fork . 修复就在这个分支中 How can I specify that I want cabal to build from this fork of HDBC-mysql? 如何指定我想从这个HDBC-mysql的分支构建cabal?

If you just want to get stuff up and running, just checkout and build manually. 如果您只是想要启动并运行,只需结帐并手动构建。

> git clone https://github.com/markus7/hdbc-mysql.git
> cd hdbc-mysql
> cabal install

This should keep things working until the new changes have been pushed to Hackage. 这应该保持工作,直到新的更改被推送到Hackage。

(note- It is possible that you will have to fiddle with dependencies to get the project to use this version.... But I would just try the simple install first and see if it works). (注意 - 您可能必须使用依赖项来使项目使用此版本....但我会先尝试简单安装,看看它是否有效)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM