cabal-version选项被忽略

时间:2016-11-23 00:50:01

标签: haskell-stack

我试图用堆栈安装一个相当旧的包(请参阅here)。它使用自定义CREATE or REPLACE VIEW orderMSTRview AS SELECT SB.name "Brand", O.orderID "Order ID", O.orderRecID "Record ID", O.orderDate "Date Created", O.salesRepName "Sales Rep Name", O.salesRepEmail "Sales Rep Email", O.orderNumer "Order Number", O.orderType "Order Type", CASE when fulfillStatus = 0 then 'open' when fulfillStatus = 1 then 'processing' when fulfillStatus = 2 then 'complete' when fulfillStatus = 5 then 'Shipped' when fulfillStatus = 9 then 'void' END as "Order Status" , IF(O.payStatus=0,'unpaid','paid') "Payment Status", O.totalOrderQuantity "Total Order Quantity", O.subtotalOrderValue "Subtotal Order Value", O.totalOrderValue "Total Order Value", O.credit "Order Credit", O.taxAmount "Tax Amount", O.shippingCost "Shipping Cost", O.finalInvoiceValue "Invoice Amount", O.currency "Currency", O.shipDate "Ship Date", O.cancelAfter "Cancel Date", O.terms "Terms", O.buyerName "Buyer Name", O.buyerEmail "Buyer Email", O.buyerPhone "Buyer Phone", O.custCode1 "Customer Code1", O.custCode2 "Customer Code2", O.custERP "Customer ERP", O.customerPO "Customer PO", O.custVat "VAT number", O.billToName "Bill To Name", O.billToStreet1 "Bill To Address1" , O.billToStreet2 "Bill To Address2", O.billToCity "Bill To City", O.billToState "Bill To State", O.billToZip "Bill To Zip code", O.shipToName "Ship To Name", O.shipToStreet1 "Ship To Address1", O.shipToStreet2 "Ship To Address2", O.shipToCity "Ship To City", O.shipToState "Ship To State", O.shipToZip "Ship To Zip code", O.tagname1 "Tag 1", O.tagname2 "Tag 2", O.tagname3 "Tag 3" FROM orders as O left join showroom_brand as SB on O.showroomID = SB.sid WHERE O.orderDate >= '2015-01-01' and SB.name IS NOT NULL; 脚本,该脚本取决于Setup.hs,因为(除其他事项外)依赖于cabal >= 1.20类型的buildNumJobs字段。

出于某种原因,BuildFlags设置为cabal-version,显然太低了。一旦我弄清楚发生了什么,我就改变了它,但问题仍然存在。我需要做什么才能使堆栈和cabal获得新的>= 1.10约束?

我尝试使用默认值替换cabal-version值,这会在构建时导致以下错误:

buildNumJobs

同样,我需要做什么才能使堆栈尊重Warning: skia.cabal: This package requires at least Cabal version 1.20 Configuring skia-0.1.0.0... setup.EXE: This package description follows version 1.20 of the Cabal specification. This tool only supports up to version 1.18.1.5. 选项?

1 个答案:

答案 0 :(得分:3)

事实证明,我所要做的只是运行cabal-version。我仍然想知道为什么堆栈没有自动检测到不一致...

相关问题