Skip to content

Document how to deal with internal libraries with stack snapshot #1764

@facundominguez

Description

@facundominguez

The latest versions of attoparsec use an internal library, and when using the newest stackage snapshots, one needs to do extra configuration in the stack_snapshot rule.

    components =
        { "attoparsec": [
                "lib",
                "lib:attoparsec-internal",
            ],
        },
    components_dependencies =
        {
            "attoparsec": """{"lib:attoparsec": ["lib:attoparsec-internal"]}""",
        },

Ideally, this extra bit of configuration would be discussed in the top-level docstring for stack_snapshot and it would be mentioned in the user guide.

Probably the documentation could also link at why this extra bit of configuration is necessary: commercialhaskell/stack#5275

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