Skip to content

Commit

Permalink
Add cabal.project, only .gitignore cabal.project.local
Browse files Browse the repository at this point in the history
This prevents accidental surprises like the one I've managed to hit
today - `git worktree add master` and building in master directory
tries to look-up `cabal.project` but only discovers one in parent
directory and starts reusing `dist-newstyle` for the build.

Better to have this explicit which devs can also use as a template to
add other temporary deps.
  • Loading branch information
sorki authored and Anton-Latukha committed Jun 27, 2020
1 parent 220209c commit 704323e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/nix-test-eval*
/nix/
TAGS
cabal.project*
cabal.project.local
ctags
dist-newstyle
result*
Expand Down
2 changes: 2 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages:
./hnix.cabal

0 comments on commit 704323e

Please sign in to comment.