Skip to content

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

Merged
8 commits merged intomasterfrom
unknown repository
Feb 19, 2020
Merged

Fix a bug causing all executables to be considered as optional#3163
8 commits merged intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@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.

Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
All executables where considered as optional. Change the code so that
only ones marked as optional are indeed optional.

Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
For good measure

Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
@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