You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Multiple cabal file error can be caused by emacs #1897
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:
When there are multiple cabal files, ignore the ones with invalid names
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.
Activity
Ignore emacs lock files when finding .cabal #1897
mgsloan commentedon Mar 10, 2016
Fixed!