-
Notifications
You must be signed in to change notification settings - Fork 843
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
How do I add a dependency I expect to be locally installed? #2055
Comments
You need to create a stack.yaml file has both projects. See the docs - there are a variety of ways to specify this. Easiest would be to write a stack.yaml file like the following: packages:
- A
- B
I don't follow the reasoning here
For dependencies outside of snapshots, you need to have them in your stack.yaml project. Alternatively, you can use custom snapshots. It is on the agenda to improve such package sharing - #1265 |
@bananu7 Have you seen the |
Gonna go ahead and close this, feel free to reopen |
Oh sorry, I got kinda swamped with other things.
That's what I did, except I did put
Yeah, I did use it, but it still required me to pass relative path there. However, I think this is an exact duplicate of #1265, so I'm not gonna reopen it and watch that one instead. PS Oh also, if you were wondering about the use case, I'm developing both of those packages at the same time; that's why I need dev snapshots of both of them locally installed and available. |
Yes. Perhaps it is too stringent of a restriction, but relative paths are preferred to make it so that you can move your packages / send the code to someone else.
Makes sense. In that circumstance, I have a stack.yaml file which includes both of them. |
Let's say I have two projects,
A
andB
,B
depending onA
. Neither of them is on Stackage. I clone and buildA
, then dostack install
. At this point, I can globally run any executables provided by it and I'd expect it to be available to other libraries as well.However, when doing
stack build
inB
, it doesn't want to pick upA
. It only looks in the relative path, namely.../B/A/
, fails to seeA
there and fails.How do I specify that a dependency is expected to be locally installed?
The text was updated successfully, but these errors were encountered: