haskell / actions

Github actions for Haskell CI
146 stars 54 forks source link

When cabal specified as 3.10, setup tries to install cabal 3.1, which fails #267

Closed jhrcek closed 1 year ago

jhrcek commented 1 year ago

When I specify cabal version as 3.10

It seems that setup actions is trying to install cabal version 3.1, which predictably fails.

Here's a relevant part of github actions config (note 3.10 version of cabal) Screenshot from 2023-06-29 08-58-14

But then the job fails, with this error (why is it trying to install cabal 3.1?)

Screenshot from 2023-06-29 08-57-19

There is a workaround, namely declaring cabal version as 3.10.1.0. But it would be nice if the shorter version also worked..

TravisCardwell commented 1 year ago

This sounds like a YAML parsing issue, where 3.10 is being read as a number. Try string syntax instead:

cabal: ["3.10"]
jhrcek commented 1 year ago

That didn't occur to me. You're right, quoting the number fixed the issue. Thanks!