Skip to content

Advice on distributing cabal.project.freeze for projects with exes and libs. #5750

Open

Description

@philderbeast

For end-user executables, it is recommended that you distribute the
``cabal.project.freeze`` file in your source repository so that all
users see a consistent set of dependencies. For libraries, this is not
recommended: users often need to build against different versions of
libraries than what you developed against.

I don't know how to apply this advice when the project has both executables and libraries. Can we advise what to do in this situation too please? Can the constraints be limited to just the executables?

Activity

  1. philderbeast commented on Nov 28, 2018

    @philderbeast
    CollaboratorAuthor

    Would having --project=cabal-exes.project and --project=cabal-libs.project when cabal-exes.project.freeze exists but cabal-libs.project.freeze doesn't be consistent with the advice?

  2. jneira commented on Mar 23, 2022

    @jneira
    Member

    Issues related: #8047, #8059. Maybe #8053 could include the clarification

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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