Skip to content

Be able to (install something from another context #13037

@dinosaure

Description

@dinosaure

Probably related to #5592 (and the ability to use artifacts across contexts) but it will be interesting to tell to dune to install an artifact which is only available from a specific context such as:

(rule
 (target unikernel.hvt)
 (enabled_if (= %{context_name} "solo5"))
 (deps unikernel/main.exe)
 (action (bash "strip %{deps} -o %{target}")))

(install
 (files unikernel.hvt)
 (enabled_if (= %{context_name} "solo5"))
 (section bin)
 (package my-unikernel))

As far as I can tell, the produced my-unikernel.install mentions only artifacts from the default context. From the example above, dune also complains that unikernel.hvt does not exist for @default and @all (which is... expected?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions