You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Local file path
Like packages, local file paths can be used in extra-deps, and will be relative to the directory containing the stack.yaml file.
extra-deps:
- vendor/somelib
Note that if a local directory can be parsed as a package identifier, Stack will treat it as a package identifier. In other words, if you have a local directory named foo-1.2.3, instead of:
extra-deps:
- foo-1.2.3
You should use the following to be explicit:
extra-deps:
- ./foo-1.2.3
Nota bene: this is based on a user report, I haven't confirmed this is broken yet. Even if it isn't, an explanation of why the docs tell people to do the above instead of packages would be helpful. I think the relationship between packages and extra-deps has gotten a bit strained over time and I remember some people floating the suggestion that the overlap be reconciled.
The text was updated successfully, but these errors were encountered:
I am a little concerned that changes to stack.yaml format will break unintuitively for folks on older versions.
It may make sense to implement #1681 ("Check for recent version during calls?"), so that when more changes like this come in the future. Particularly, doing this check when a stack.yaml fails to parse could be good.
It may make sense to demand require-stack-version in order to use the new extra-deps syntax.
https://github.com/commercialhaskell/stack/blob/master/doc/yaml_configuration.md#local-file-path might not be correct or functional in current stable Stack.
Most experienced Stack users I know do something like this:
Documentation at time of writing instead says:
Nota bene: this is based on a user report, I haven't confirmed this is broken yet. Even if it isn't, an explanation of why the docs tell people to do the above instead of
packages
would be helpful. I think the relationship betweenpackages
andextra-deps
has gotten a bit strained over time and I remember some people floating the suggestion that the overlap be reconciled.The text was updated successfully, but these errors were encountered: