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

Fix a bug causing all executables to be considered as optional #3163

Merged
8 commits merged into from Feb 19, 2020
Merged

Fix a bug causing all executables to be considered as optional #3163

8 commits merged into from Feb 19, 2020

Conversation

ghost
Copy link

@ghost ghost commented Feb 19, 2020

Right now all executables are considered as optional, which is clearly wrong. This patch adds a regression test and fixes the issue. Now only executables marked with (optional) are indeed considered as optional.

Libraries are not affected, but for good measure I added a similar check to inspect the .optional field.

All executables where considered as optional. Change the code so that
only ones marked as optional are indeed optional.

Signed-off-by: Jeremie Dimino <[email protected]>
Signed-off-by: Jeremie Dimino <[email protected]>
Signed-off-by: Jeremie Dimino <[email protected]>
For good measure

Signed-off-by: Jeremie Dimino <[email protected]>
Signed-off-by: Jeremie Dimino <[email protected]>
Signed-off-by: Jeremie Dimino <[email protected]>
@ghost ghost merged commit a490b89 into ocaml:master Feb 19, 2020
rgrinberg added a commit to rgrinberg/opam-repository that referenced this pull request Feb 20, 2020
…lugin, dune-private-libs and dune-glob (2.3.1)

CHANGES:

- Fix versioning of artifact variables (eg %{cmxa:...}), which were introduced
  in 2.0, not 1.11. (ocaml/dune#3149, @nojb)

- Fix a bug introduced in 2.3.0 where dune insists on using `fswatch` on linux
  (even when `inotifywait` is available). (ocaml/dune#3162, @aalekseyev)

- Fix a bug causing all executables to be considered as optional (ocaml/dune#3163, @diml)
rgrinberg added a commit to rgrinberg/opam-repository that referenced this pull request Feb 22, 2020
…lugin, dune-private-libs and dune-glob (2.3.1)

CHANGES:

- Fix versioning of artifact variables (eg %{cmxa:...}), which were introduced
  in 2.0, not 1.11. (ocaml/dune#3149, @nojb)

- Fix a bug introduced in 2.3.0 where dune insists on using `fswatch` on linux
  (even when `inotifywait` is available). (ocaml/dune#3162, @aalekseyev)

- Fix a bug causing all executables to be considered as optional (ocaml/dune#3163, @diml)
rgrinberg added a commit to rgrinberg/opam-repository that referenced this pull request Feb 23, 2020
…lugin, dune-private-libs and dune-glob (2.3.1)

CHANGES:

- Fix versioning of artifact variables (eg %{cmxa:...}), which were introduced
  in 2.0, not 1.11. (ocaml/dune#3149, @nojb)

- Fix a bug introduced in 2.3.0 where dune insists on using `fswatch` on linux
  (even when `inotifywait` is available). (ocaml/dune#3162, @aalekseyev)

- Fix a bug causing all executables to be considered as optional (ocaml/dune#3163, @diml)
rgrinberg added a commit to rgrinberg/opam-repository that referenced this pull request Feb 24, 2020
…lugin, dune-private-libs and dune-glob (2.3.1)

CHANGES:

- Fix versioning of artifact variables (eg %{cmxa:...}), which were introduced
  in 2.0, not 1.11. (ocaml/dune#3149, @nojb)

- Fix a bug introduced in 2.3.0 where dune insists on using `fswatch` on linux
  (even when `inotifywait` is available). (ocaml/dune#3162, @aalekseyev)

- Fix a bug causing all executables to be considered as optional (ocaml/dune#3163, @diml)
@ghost ghost deleted the fix-optional-executables branch February 27, 2020 10:56
This pull request was closed.
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.

2 participants