Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Apr 3, 2023

Conversation

Leonidas-from-XIV
Copy link
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
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