alexacallmebaka / kobayashi

a draconic static site builder. 🐉
https://jameshurd.net/projects/kobayashi/manual
3 stars 0 forks source link

cabal install fails #1

Closed thecsw closed 7 months ago

thecsw commented 7 months ago

getting an issue of installing kobayashi through cabal, here is the output and the versions on my machine

kobayashi:master* λ cabal --version
cabal-install version 3.10.2.1
compiled using version 3.10.2.1 of the Cabal library
kobayashi:master* λ ghc --version
The Glorious Glasgow Haskell Compilation System, version 9.4.8
kobayashi:master* λ cabal install
Error: cabal: Could not resolve dependencies:
[__0] trying: kobayashi-0.1.0.0 (user goal)
[__1] next goal: base (dependency of kobayashi)
[__1] rejecting: base-4.17.2.1/installed-4.17.2.1 (conflict: kobayashi =>
base^>=4.16.4.0)
[__1] skipping: base-4.19.0.0, base-4.18.1.0, base-4.18.0.0, base-4.17.2.1,
base-4.17.2.0, base-4.17.1.0, base-4.17.0.0 (has the same characteristics that
caused the previous version to fail: excluded by constraint '^>=4.16.4.0' from
'kobayashi')
[__1] rejecting: base-4.16.4.0, 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 non-upgradeable package requires installed
instance)
[__1] fail (backjumping, conflict set: base, kobayashi)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: base, kobayashi
thecsw commented 7 months ago

do my cabal/ghc have to be locked down to a specific version?

alexacallmebaka commented 7 months ago

hmmmmm, did you run cabal update before installing?

thecsw commented 7 months ago

yes

alexacallmebaka commented 7 months ago

i am developing under cabal 3.6.2.0 using ghc 9.2.8. could you try building with these?

thecsw commented 7 months ago

works great on those versions! maybe a hint to have those versions enabled in readme could let people know to lock their build environments? Thanks!

alexacallmebaka commented 7 months ago

perfect! definitely will note those down, still playing around with different versions of cabal and ghc. actually working on updated docs as i type this haha. thanks for catching this sandy!