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

When using configuration from show duplicate paths #10645

Open
philderbeast opened this issue Dec 17, 2024 · 0 comments · May be fixed by #10646
Open

When using configuration from show duplicate paths #10645

philderbeast opened this issue Dec 17, 2024 · 0 comments · May be fixed by #10646

Comments

@philderbeast
Copy link
Collaborator

Describe the bug
The "when using configuration from" message is duplicating paths on Windows but these are the same path, ignoring path separator differences.

To Reproduce

$ cat else.project 
import: dir-else/else.config

$ cat dir-else/else.config 
if false
else
    _
    packages: no-pkg-here
  • On Ubuntu
$ ~/.ghcup/bin/cabal-3.12.1.0 build all --dry-run --project-file=else.project
...
Warning: /.../else.project,
else.project: Unrecognized section '_' on line 3
When using configuration from:
  - dir-else/else.config
  - else.project
The following errors occurred:
  - The package location 'no-pkg-here' does not exist.
  • On Windows
$ cabal build all --dry-run --project-file=else.project
Warning:
C:\...\else.project,
else.project: Unrecognized section '_' on line 3
When using configuration from:
  - dir-else/else.config
  - dir-else\else.config
  - else.project
The following errors occurred:
  - The package location 'no-pkg-here' does not exist.

Expected behavior

That there'd only be one entry for each project configuration file.

System information

  • Operating system compared are Windows 10 Pro and Ubuntu 24.10
  • cabal version is 3.12.1.0 and also seeing the same problem with 3727226:
$ git rev-parse HEAD
37272267206d5962a4c61ed193ce47813cf18809
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant