-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Filename collision #1
Comments
Okay, I guess no one's going to respond. |
Github did not feel it relevant to email me about this, and I didn't manually check. Reopening. |
I see. My temporary workaround was: diff --git a/Makefile b/Makefile
index c2cf996..bbcdb98 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ all: shellcheck jsoncheck .tests
shellcheck: regardless
: Conditionally compiling shellcheck
- ghc $(GHCFLAGS) --make shellcheck
+ ghc $(GHCFLAGS) --make shellcheck -o build/shellcheck
jsoncheck: regardless
: Conditionally compiling shellcheck I spent a few minutes trying to make a cabal package, but I didn't get it working. (I'm not a Haskell programmer at all.) |
An initial cabal package file has been added, and tested on a case insensitive file system. The Makefile is still required for unit tests, I'll look into this later. |
Thanks! |
FYI this still occurs if I make it with "make", and it's pretty non-obvious what went wrong. I feel fortunate google took me straight to this ticket.
I suggest generating into some kind of build directory is good practice for lots of reasons and would eliminate all variations of this collision. |
Oh, and I forgot to mention: it is awesome. |
On OS X, the
shellcheck
compiled output collides with theShellCheck
directory due to case insensitivity. I don't know the convention in Haskell, but perhaps you could output the binary in abuild
directory (ghc --make shellcheck -o build/shellcheck
). Or maybe use cabal.The text was updated successfully, but these errors were encountered: