Skip to content

Commit

Permalink
Do not duplicate profile in missing deps message
Browse files Browse the repository at this point in the history
Closes #1106

Signed-off-by: Etienne Millon <me@emillon.org>
  • Loading branch information
emillon committed Aug 7, 2018
1 parent b616c7e commit c6e58b0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 1 addition & 2 deletions bin/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,7 @@ let common =
in
let orig_args =
List.concat
[ dump_opt "--profile" profile
; dump_opt "--workspace" (Option.map ~f:Arg.Path.arg workspace_file)
[ dump_opt "--workspace" (Option.map ~f:Arg.Path.arg workspace_file)
; orig
]
in
Expand Down
8 changes: 8 additions & 0 deletions test/blackbox-tests/test-cases/findlib/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,11 @@ Reproduction case for #484. The error should point to src/jbuild
Error: Library "a" not found.
Hint: try: dune external-lib-deps --missing @install
[1]

When passing --dev, the profile should be displayed only once (#1106):

$ jbuilder build --dev @install
File "src/dune", line 4, characters 14-15:
Error: Library "a" not found.
Hint: try: dune external-lib-deps --missing --profile dev @install
[1]

0 comments on commit c6e58b0

Please sign in to comment.