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

When adding git packages, please check subdirs. #2

Open
philderbeast opened this issue May 8, 2018 · 0 comments
Open

When adding git packages, please check subdirs. #2

philderbeast opened this issue May 8, 2018 · 0 comments

Comments

@philderbeast
Copy link
Contributor

When adding packages, please check subdirs.

- location:
    git: https://github.com/blockscope/hcoord.git
    commit: efee5918967a4b5309924bb6ac62c2daa56983a1
  subdirs:
  - hcoord
  - hcoord-utm
  extra-dep: true
- location:
    git: https://github.com/haskell/fgl.git
    commit: e29503775e474b7a7cd8951b6bebcf1529b888b5
  extra-dep: true
- location:
    git: https://github.com/blockscope/uom-plugin.git
    commit: c170a2df329fe8e40d13aea0b4299758d5079bda
  subdirs:
  - uom-plugin
  extra-dep: true
- location:
    git: https://github.com/brunjlar/stack2cabal
    commit: a8a4cdcacd697cee648af93856735f15de5987a6
  extra-dep: true

In the following image showing a file diff, the right pane is the packages section of cabal.project generated with stack2cabal. It does not have paths. I've corrected this problem with the file shown in the left pane to include the paths taken from the stack.yaml file above.

stack2cabal-paths

To reproduce, working off flare-timing at revision 68e62b;

> git clone https://github.com/BlockScope/flare-timing.git
> cd flare-timing
> git reset --hard 68e62b236ca4e7207e559eeb5aec7bb69f44cc6e
> stack install stack2cabal
> mv cabal.project __cabal.project
> stack exec stack2cabal .
creating cabal config for project folder '.'
writing cabal.project
DEPRECATED: Use ls dependencies instead. Will be removed in next major version.
done: writing cabal.project
...
done: creating cabal config for project folder '.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant