Skip to content

Add package stanza on all rules that depend on opamMain.exe.exe#5496

Merged
rjbou merged 3 commits intoocaml:masterfrom
Leonidas-from-XIV:explicit-package-associations
Apr 3, 2023
Merged

Add package stanza on all rules that depend on opamMain.exe.exe#5496
rjbou merged 3 commits intoocaml:masterfrom
Leonidas-from-XIV:explicit-package-associations

Conversation

@Leonidas-from-XIV
Copy link
Copy Markdown
Contributor

The compilation fails if

$ dune build --only-packages opam-core,opam-format,opam-repository

As it tries to build the binary, but can't due to the opam package not being compiled. This adds the package stanza to the associated rules to avoid the rules being triggered when the opam package is not selected.

The compilation fails if

  $ dune build --only-packages opam-core,opam-format,opam-repository

As it tries to build the binary, but can't due to the opam package not
being compiled. This adds the `package` stanza to the associated rules
to avoid the rules being triggered when the `opam` package is not
selected.
emillon added a commit to ocaml/dune that referenced this pull request Mar 30, 2023
While fixing the package associations in ocaml/opam#5496 I realized that the package stanza is only accepted when it is at the end of the rule stanza.

* Add test that `packages` needs to be last, or it will be rejected

    File "dune", line 12, characters 3-10:
    12 |   (package a)
            ^^^^^^^
    Error: Unknown action or rule field.
    [1]

Signed-off-by: Marek Kubica <marek@tarides.com>
Co-authored-by: Etienne Millon <me@emillon.org>
emillon added a commit to emillon/dune that referenced this pull request Mar 31, 2023
While fixing the package associations in ocaml/opam#5496 I realized that the package stanza is only accepted when it is at the end of the rule stanza.

* Add test that `packages` needs to be last, or it will be rejected

    File "dune", line 12, characters 3-10:
    12 |   (package a)
            ^^^^^^^
    Error: Unknown action or rule field.
    [1]

Signed-off-by: Marek Kubica <marek@tarides.com>
Co-authored-by: Etienne Millon <me@emillon.org>
@Leonidas-from-XIV Leonidas-from-XIV changed the title Add package stanza on all packages that depend on opamMain.exe.exe Add package stanza on all rules that depend on opamMain.exe.exe Mar 31, 2023
@rjbou rjbou added this to the 2.2.0~alpha milestone Apr 3, 2023
@rjbou rjbou merged commit f4d631b into ocaml:master Apr 3, 2023
@rjbou
Copy link
Copy Markdown
Collaborator

rjbou commented Apr 3, 2023

Thanks!

@Leonidas-from-XIV Leonidas-from-XIV deleted the explicit-package-associations branch April 3, 2023 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants