Skip to content

Track private executable inter-component dependencies (Was: Document new scope field in manual) #4503

Open

Description

@hvr

A new field scope was added via #4501

However, I don't see it mentioned anywhere in http://cabal.readthedocs.io/en/latest/cabal-projectindex.html so I have to assume it hasn't been documented yet.

I'm also wondering if this is only relevant to the old non-new-build paradigm, given how differently new-build works (executables live in the cabal nix store, and we'd probably just symlink to them, to create specific bin/-folder views into the store), or alternatively, how this is supposed to interact w/ the nix-style new-build paradigm.

/cc @DanielG


UPDATE:

Some bikeshedding names for the new property:

(dist|runtime|libexec)-(tool-|exe-|)-depends

Also, we need to implement some new Paths_ lookup facilities; as we can not assume that things are locatable via the libexec folder due to the per-component nature of cabal's nix-style store.

Activity

  1. 23Skidoo commented on May 6, 2017

    @23Skidoo
    Member
  2. hvr commented on May 6, 2017

    @hvr
    MemberAuthor

    @23Skidoo so these executables would be basically package-data (whose location would be resolvable via the Paths_$NAME facility?). How do we encode the inter-component dependency? As right now, if you install a library, the executables will not be built automatically, since cabal has no reason to think that the installed library depends on any executables (and this ability to finally skip building unecessary executables when only the library is requested, was in fact one of the killer features of the new per-component work).

  3. 23Skidoo commented on May 6, 2017

    @23Skidoo
    Member

    How do we encode the inter-component dependency?

    The options I see are either to do it explicitly in some way, or implicitly by automatically adding a library -> exe dependency for all exes with scope: private.

  4. 23Skidoo commented on May 6, 2017

    @23Skidoo
    Member

    The former is probably better, since it will let us express things like public exes depending on private exes w/o any library involved.

  5. hvr commented on May 6, 2017

    @hvr
    MemberAuthor

    tbh, explicit is better. We already have a precedent with build-tools used to declare built-time intra-inter-deps as well as the new-build-tools-depends for declaring build-time deps of external deps. We should continue on that path.

    Last but not least, remember Cabal's design mantra "No untracked dependencies"! :-)

  6. changed the title [-]Document new `scope` field in manual[/-] [+]Track private executable inter-component dependencies (Was: Document new `scope` field in manual)[/+] on May 26, 2017
  7. added
    cabal-install: v2-build system
    and removed on May 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cabal-install: v2-build systemtype: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions