Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow-newer: ^all doesn't parse #10381

Open
philderbeast opened this issue Sep 22, 2024 · 0 comments
Open

allow-newer: ^all doesn't parse #10381

philderbeast opened this issue Sep 22, 2024 · 0 comments

Comments

@philderbeast
Copy link
Collaborator

philderbeast commented Sep 22, 2024

-- Disregard all `^>=`-style upper bounds when dependency solving
allow-newer: ^all

SOURCE: project allow-newer

The docs mention using allow-newer: ^all but trying this gives a parser error.

$ cabal init allow-any-newer --non-interactive
Warning: this is a debug build of cabal-install with assertions enabled.
[Info] Guessing dependencies...
[Info] Using cabal specification: 3.0
[Warn] unknown license type, you must put a copy in LICENSE yourself.
[Info] Creating fresh file CHANGELOG.md...
[Info] Creating fresh directory ./app...
[Info] Creating fresh file app/Main.hs...
[Info] Creating fresh file allow-any-newer.cabal...
[Warn] No synopsis given. You should edit the .cabal file and add one.
[Info] You may want to edit the .cabal file and add a Description field.

$ cd allow-any-newer/

$ cabal build all --enable-tests --enable-benchmarks
Warning: this is a debug build of cabal-install with assertions enabled.
Resolving dependencies...
Build profile: -w ghc-9.10.1 -O1
...

$ echo "allow-newer: all" > cabal.project.local

$ cabal build all --enable-tests --enable-benchmarks
Warning: this is a debug build of cabal-install with assertions enabled.
Resolving dependencies...
Up to date

$ echo "allow-newer: ^all" > cabal.project.local

$ cabal build all --enable-tests --enable-benchmarks
Warning: this is a debug build of cabal-install with assertions enabled.
Error: [Cabal-7090]
Error parsing project local configuration file /.../allow-any-newer/cabal.project.local:1:
"<eitherParsec>" (line 1, column 1):
unexpected "^"
expecting comma or "*"

I see the same behaviour with cabal-install-3.12.1.0 and with cabal-install installed from d988732.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant