haskell 无法解决阴谋集团对CI的依赖性,即使阴谋集团冻结

nqwrtyyt  于 2023-04-21  发布在  其他
关注(0)|答案(1)|浏览(97)

我的线人出错了

Resolving dependencies...
Error: cabal: Could not resolve dependencies:
[__0] trying: Kalmarity-0.0.1 (user goal)
[__1] next goal: base (dependency of Kalmarity)
[__1] rejecting: base-4.14.1.0/installed-4.14.1.0, base-4.18.0.0,
base-4.17.0.0 (constraint from project config
/home/runner/work/Kalmarity/Kalmarity/cabal.project.freeze requires
==4.16.4.0)
[__1] rejecting: base-4.16.4.0 (constraint from non-upgradeable package
requires installed instance)
[__1] rejecting: base-4.16.3.0, base-4.16.2.0, base-4.16.1.0, base-4.16.0.0,
base-4.15.1.0, base-4.15.0.0, base-4.14.3.0, base-4.14.2.0, base-4.14.1.0,
base-4.14.0.0, base-4.13.0.0, base-4.12.0.0, base-4.11.1.0, base-4.11.0.0,
base-4.10.1.0, base-4.10.0.0, base-4.9.1.0, base-4.9.0.0, base-4.8.2.0,
base-4.8.1.0, base-4.8.0.0, base-4.7.0.2, base-4.7.0.1, base-4.7.0.0,
base-4.6.0.1, base-4.6.0.0, base-4.5.1.0, base-4.5.0.0, base-4.4.1.0,
base-4.4.0.0, base-4.3.1.0, base-4.3.0.0, base-4.2.0.2, base-4.2.0.1,
base-4.2.0.0, base-4.1.0.0, base-4.0.0.0, base-3.0.3.2, base-3.0.3.1
(constraint from project config
/home/runner/work/Kalmarity/Kalmarity/cabal.project.freeze requires
==4.16.4.0)
[__1] fail (backjumping, conflict set: Kalmarity, base)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: base, Kalmarity

构建依赖于原始阴谋集团的列表

Build-Depends:
      base                  >= 4.13
    , base-unicode-symbols  >= 0.2
    , containers            >= 0.6.5.1
    , aeson                 >= 2.0.3.0
    , conduit               >= 1.3.4.1
    , calamity              >= 0.7.1.0
    , calamity-commands     >= 0.4.0.0
    , optics                >= 0.4.2
    , lens                  >= 5.2
    , di-polysemy           >= 0.2
    , di                    >= 1.3
    , df1                   >= 0.4.1
    , di-core               >= 1.0.4
    , polysemy              >= 1.7.1.0
    , polysemy-plugin       >= 0.4.3.1
    , polysemy-time         >= 0.6.0.0
    , stm                   >= 2.5
    , text                  >= 1.2.5
    , text-show             >= 3.9.7
    , persistent            >= 2.14.0.3
    , persistent-sqlite     >= 2.13.1.0
    , monad-logger          >= 0.3.39
    , optparse-generic      >= 1.4.9
    , req                   >= 3.13.0
    , data-flags            >= 0.0.3.4
    , yaml                  >= 0.11.10.0
    , directory             >= 1.3.6.2
    , unordered-containers  >= 0.2.19.1
    , unboxing-vector       >= 0.2.0.0
    , data-default          >= 0.7.1.1
    , hw-kafka-client       >= 5.0.0
    , async                 >= 2.2.4
    , bytestring

链接到配置项作业和存储库:https://github.com/Miezhiko/Kalmarity/actions/runs/4730175482/jobs/8393551210
即使当我使用cabal.project.freeze,我在我的机器上生成,它构建得很好,我在GHC 9.2.6,cabal 3.6.3上

lg40wkob

lg40wkob1#

CI似乎使用了GHC 8.10.2、8.10.3或8.10.4,它们需要以4.14.1.0为基础,但正如您所说,冻结文件是用GHC 9.2.6生成的,因此它需要以4.16.4.0为基础。
基本包的版本固定为GHC版本,因此您不能像这样简单地在不同的编译器版本之间使用冻结文件。

相关问题