-
Notifications
You must be signed in to change notification settings - Fork 846
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
Outdated documentation about adding a remote git repo in stack.yaml #4425
Comments
Checking whether this is a regression or just outdated documentation |
It’s definitely a deprecation — see https://www.fpcomplete.com/blog/2017/07/stacks-new-extensible-snapshots#four-package-locations (implemented in #3249).
Then further down
So
Whatever happens, we need to change the docs. Depending on 1 we either update to reflect the requirement for an explicit It would be good to ensure that stack recognises the old stack.yaml format — and possibly even correct the error. @Lysxia What error do you actually see? |
Indeed it works with an
That is if the package is not on Hackage. If it is, you get either the usual error if it is not in your resolver, or A big source of confusion for me was the fact that |
OK, so two things are needed to resolve the issue fully
@Lysxia Would you like to tackle one, or perhaps both (please no animal names for functions)? |
Sadly I don't have time to work on this in the near future, although I would have liked to. But thanks for the offer. ;) |
Sorry, I didn't notice this issue before. I wasn't even aware of the first doc. I'm going to send a PR to have it point to the YAML configuration doc instead. |
Remove incorrect Git repo documentation (fixes #4425)
Oops, sorry for jumping the gun - I see we still want to support the deprecated format; reopening. |
I don't think we want to do that. We had a deprecation cycle and then removed support for the old format. The next release of Stack (2.0) is taking that even further with implicit snapshots. |
Thanks @snoyberg ! I agree that was probably the last trace of the old format. |
(Version 1.9.1.1, Git revision a953002 (6170 commits) x86_64)
The manual gives two different ways of adding a dependency via
git
(that one can find in a search using the keywordgit
):I couldn't get the first one to work (even though it's the first result). The second is fine.
Steps to reproduce
foo
that can be found on a remote git repo as a dependency to the packagefoo
tostack.yaml
stack build
: the first method results in an error, the second doesn't.So one of these seems outdated. It's odd that the error is not about invalid syntax, but stack simply seems to ignore that
location:
field underpackages:
.The text was updated successfully, but these errors were encountered: