typelead / etlas

Etlas, the build tool and package manager for the Eta programming language
63 stars 10 forks source link

Etlas doesn't handle constraints on packages properly #68

Open Jyothsnasrinivas opened 6 years ago

Jyothsnasrinivas commented 6 years ago

While trying to build Elm-0.13, etlas ignores the constraints on the direct dependencies like indents. The bounds specified in the cabal file are indents >= 0.3 && < 0.4 but etlas is using indents-0.5.0.0 . This can be reproduced by checking the plan.json file after building Elm-0.13

[_46] trying: uniplate-1.6.12 (dependency of language-ecmascript-0.19)
[_47] trying: ansi-wl-pprint-0.6.8.2 (dependency of language-ecmascript-0.19)
[_48] trying: ansi-wl-pprint-0.6.8.2:-example
[_49] trying: ansi-terminal-0.6.2.3 (dependency of ansi-wl-pprint-0.6.8.2)
[_50] trying: indents-0.5.0.0 (dependency of Elm-0.13)
[_51] trying: indents-0.5.0.0:!test
[_52] trying: highlighting-kate-0.6.4 (dependency of Elm-0.13)
[_53] trying: highlighting-kate-0.6.4:!test
Jyothsnasrinivas commented 6 years ago

The workaround for this is to add constraints: indents == 0.3.3 in the cabal.project file.