dune icon indicating copy to clipboard operation
dune copied to clipboard

Wish: generalize package to packages in executables stanza

Open jberdine opened this issue 8 years ago • 3 comments

An executables stanza can specify several names and several public_names but only one package. In case there are multiple executables which should appear in different packages, then multiple install stanzas need to be written explicitly. It seems like it would be less redundant to allow a packages field that works analogously to the public_names field.

jberdine avatar Dec 21 '17 00:12 jberdine

One thing that we're planning to do is implement a plugin system for defining your stanzas. See #56 . With such a system, it should be easy enough to support what you're asking. In fact, I kind of regret that we added the various redundant executables/libraries stanzas.

Though for completion, it's possible to make the argument that we should just support this since we already went down there of adding sugar to defining executables.

rgrinberg avatar Dec 22 '17 08:12 rgrinberg

Thinking about this again, maybe we should just have a way to label names with packages.

For example:

(executables
 (public_names foo bar baz)
 (packages (pkg1 foo bar) (pkg2 baz)))

Would this be acceptable for you @jberdine ?

rgrinberg avatar Sep 21 '18 13:09 rgrinberg

Yes, that seems good to me.

Sorry for the delay, I missed this.

jberdine avatar Oct 11 '18 00:10 jberdine