Skip to content

Outdated documentation about adding a remote git repo in stack.yaml #4425

@Lysxia

Description

@Lysxia

(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 keyword git):

I couldn't get the first one to work (even though it's the first result). The second is fine.

Steps to reproduce

  1. Take any stack project (or create one).
  2. Add some package foo that can be found on a remote git repo as a dependency to the package
  3. Use either of the above two methods to add foo to stack.yaml
  4. 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 under packages:.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions