You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Track private executable inter-component dependencies (Was: Document new scope field in manual) #4503
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.
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.
@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).
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.
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"! :-)
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
Activity
23Skidoo commentedon May 6, 2017
See http://cabal.readthedocs.io/en/stable/developing-packages.html#pkg-field-executable-scope
I just need to port my docs patch over to
master.Re:
new-build, I guess those exes won't be linked to from~/.cabal/bin.hvr commentedon May 6, 2017
@23Skidoo so these executables would be basically package-data (whose location would be resolvable via the
Paths_$NAMEfacility?). 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).23Skidoo commentedon May 6, 2017
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.23Skidoo commentedon May 6, 2017
The former is probably better, since it will let us express things like public exes depending on private exes w/o any library involved.
hvr commentedon May 6, 2017
tbh, explicit is better. We already have a precedent with
build-toolsused 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"! :-)
[-]Document new `scope` field in manual[/-][+]Track private executable inter-component dependencies (Was: Document new `scope` field in manual)[/+]