Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Use source-repository-package to pin Git deps in cabal. #91

Merged
merged 4 commits into from
Jun 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
[submodule "vendor/hspec-expectations-pretty-diff"]
path = vendor/hspec-expectations-pretty-diff
url = https://github.com/rewinfrey/hspec-expectations-pretty-diff
[submodule "vendor/haskell-tree-sitter"]
path = vendor/haskell-tree-sitter
url = https://github.com/tree-sitter/haskell-tree-sitter.git
[submodule "vendor/proto3-suite"]
path = vendor/proto3-suite
url = https://github.com/joshvera/proto3-suite.git
[submodule "vendor/proto3-wire"]
path = vendor/proto3-wire
url = https://github.com/joshvera/proto3-wire.git
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ before_install:

install:
- cabal new-update
- cabal new-configure --enable-tests --write-ghc-environment-files=always
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we’re going to want the .ghc.environment files generated for the doctests to work reliably, tho this may be more of a problem for matrix builds (IIRC).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aha!

- cabal new-configure --write-ghc-environment-files=always
- cabal new-build --only-dependencies -j

script:
Expand Down
17 changes: 15 additions & 2 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
packages: vendor/* vendor/proto3-suite vendor/haskell-tree-sitter/languages/* semantic.cabal semantic-core/semantic-core.cabal
packages: vendor/* vendor/haskell-tree-sitter/languages/* . semantic-core

package proto3-suite
source-repository-package
type: git
location: https://github.com/joshvera/proto3-suite.git
tag: e13c7099789867733f42f47a25349a826937d870

source-repository-package
type: git
location: https://github.com/joshvera/proto3-wire.git
tag: 84664e22f01beb67870368f1f88ada5d0ad01f56

source-repository-package
type: git
location: https://github.com/rewinfrey/hspec-expectations-pretty-diff
tag: 94af5871c24ba319f7f72fefa53c1a4d074c9a29
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is v. cool.

1 change: 0 additions & 1 deletion vendor/hspec-expectations-pretty-diff
Submodule hspec-expectations-pretty-diff deleted from 94af58
1 change: 0 additions & 1 deletion vendor/proto3-suite
Submodule proto3-suite deleted from 83f335
1 change: 0 additions & 1 deletion vendor/proto3-wire
Submodule proto3-wire deleted from 84664e