xmonad / xmonad-testing

Stack/cabal setup for testing xmonad* and configurations
BSD 2-Clause "Simplified" License
27 stars 21 forks source link

Repo no longer works with new xmonad #15

Open frozencemetery opened 4 years ago

frozencemetery commented 4 years ago

With stack:

$ stack setup
...
$ stack build
Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for xmonad-contrib-0.16:
    xmonad-0.13 from stack configuration does not match >=0.15 && <0.16  (latest matching version
                is 0.15)
needed since xmonad-contrib is a build target.

Some different approaches to resolving this:

  * Set 'allow-newer: true'
    in /home/rharwood/.stack/config.yaml to ignore all version constraints and build anyway.

  * Consider trying 'stack solver', which uses the cabal-install solver to attempt to find some working
    build configuration. This can be convenient when dealing with many complicated constraint errors, but
    results may be unpredictable.

  * Recommended action: try adding the following to your extra-deps
    in /home/rharwood/xmonad-testing.git/master/stack.yaml:

xmonad-0.15@sha256:db671d78ecd66f39f23decf60974a3e078525ec9d2be68a3946b0cfb4d3954fa

Plan construction failed.
$ 

Or cabal:

$ cabal new-build
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] next goal: xmonad (user goal)
[__0] rejecting: xmonad-0.15/installed-7vd..., xmonad-0.15, xmonad-0.14.2,
xmonad-0.14 (constraint from user target requires ==0.13)
[__0] trying: xmonad-0.13
[__1] next goal: xmonad-contrib (user goal)
[__1] rejecting: xmonad-contrib-0.16 (conflict: xmonad==0.13, xmonad-contrib
=> xmonad>=0.15 && <0.16)
[__1] rejecting: xmonad-contrib-0.15/installed-HnM..., xmonad-contrib-0.15,
xmonad-contrib-0.14, xmonad-contrib-0.13, xmonad-contrib-0.12,
xmonad-contrib-0.11.4, xmonad-contrib-0.11.3, xmonad-contrib-0.11.2,
xmonad-contrib-0.11.1, xmonad-contrib-0.11, xmonad-contrib-0.10,
xmonad-contrib-0.9.2, xmonad-contrib-0.9.1, xmonad-contrib-0.9,
xmonad-contrib-0.8.1, xmonad-contrib-0.8, xmonad-contrib-0.7,
xmonad-contrib-0.6, xmonad-contrib-0.5 (constraint from user target requires
==0.16)
[__1] fail (backjumping, conflict set: xmonad, xmonad-contrib)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: xmonad, xmonad-contrib

$ 
frozencemetery commented 4 years ago

System is Debian testing; cabal-install is 2.4.0.0-2+b1; haskell-stack is 1.9.3.1-1.

frozencemetery commented 4 years ago

Debian has updated cabal-install to 3.0.0.0-3; it fails in materially the same way:

$ cabal new-build
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] next goal: xmonad (user goal)
[__0] rejecting: xmonad-0.15/installed-7vd..., xmonad-0.15, xmonad-0.14.2,
xmonad-0.14 (constraint from user target requires ==0.13)
[__0] trying: xmonad-0.13
[__1] next goal: xmonad-contrib (user goal)
[__1] rejecting: xmonad-contrib-0.16 (conflict: xmonad==0.13, xmonad-contrib
=> xmonad>=0.15 && <0.16)
[__1] rejecting: xmonad-contrib-0.15/installed-HnM..., xmonad-contrib-0.15,
xmonad-contrib-0.14, xmonad-contrib-0.13, xmonad-contrib-0.12,
xmonad-contrib-0.11.4, xmonad-contrib-0.11.3, xmonad-contrib-0.11.2,
xmonad-contrib-0.11.1, xmonad-contrib-0.11, xmonad-contrib-0.10,
xmonad-contrib-0.9.2, xmonad-contrib-0.9.1, xmonad-contrib-0.9,
xmonad-contrib-0.8.1, xmonad-contrib-0.8, xmonad-contrib-0.7,
xmonad-contrib-0.6, xmonad-contrib-0.5 (constraint from user target requires
==0.16)
[__1] fail (backjumping, conflict set: xmonad, xmonad-contrib)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: xmonad, xmonad-contrib

$ 
liskin commented 2 years ago

This is kinda expected, the current maintainers of xmonad don't use xmonad-testing any more, and we stopped mentioning xmonad-testing in CONTRIBUTING.md and issue/PR templates a while ago. So it's basically just a dump of old stuff that can serve as an inspiration, but with absolutely no expectations. Sorry :-)

geekosaur commented 2 years ago

Can we move the example build scripts to xmonad or xmonad-contrib, then? I think they're the only maintained part of the testing repo at this point (or at least I'm maintaining the cabal build script).

liskin commented 2 years ago

Sounds sensible. I'd suggest moving the example build scripts to xmonad-contrib/scripts and adding a bit of docs about their usage to https://github.com/xmonad/xmonad/blob/master/INSTALL.md#custom-build-script

geekosaur commented 2 years ago

https://github.com/xmonad/xmonad-contrib/pull/710 https://github.com/xmonad/xmonad/pull/390