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

Multiple cabal file error can be caused by emacs #1897

Closed
mgsloan opened this issue Mar 10, 2016 · 1 comment
Closed

Multiple cabal file error can be caused by emacs #1897

mgsloan opened this issue Mar 10, 2016 · 1 comment

Comments

@mgsloan
Copy link
Contributor

mgsloan commented Mar 10, 2016

Repro: Edit a .cabal file in recent emacs, without saving. Get errors like this on build:

Multiple .cabal files found in directory /home/mgsloan/fpco/stack/: .#stack.cabal, stack.cabal

The issue is that these lock files do not change the file extension (like backup files which postpend ~), but instead prefix the filename with .#. We have two options:

  1. When there are multiple cabal files, ignore the ones with invalid names
  2. When there are multiple cabal files, ignore the ones that start with .. It is not allowed in package names anyway.

I am going to go with (2), because it is less likely to mask an issue with the user's setup. Presumably editors are either going to hide such files or change the extension.

@mgsloan
Copy link
Contributor Author

mgsloan commented Mar 10, 2016

Fixed!

@mgsloan mgsloan closed this as completed Mar 10, 2016
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