Skip to content

Missing dependency file after upgrading lang dune above 2.9 #5950

@tsnobip

Description

@tsnobip

Expected Behavior

I have a custom test in my code base that is defined this way:

(tests
 (names test_json_parsing)
 (libraries yojson stork test_utils)
 (deps
  (glob_files *.json))
 (flags
  (:standard -linkall -g -open StdLabels -w +A-48-42-40-70)))

With lang dune 2.9, the project builds and the tests work.

Actual Behavior

If I upgrad lang dune from 2.9 to 3.3, when building it complains with the following error:

$ dune build
File "test/single_version/dune", line 18, characters 8-25:
18 |  (names test_json_parsing)
             ^^^^^^^^^^^^^^^^^
Fatal error: exception Sys_error("single_version_1.json: No such file or directory")

Reproduction

  1. clone https://github.com/dialohq/stork/tree/4afdd91b2567657332ddc57d6125adad1cf4c4f2
  2. dune build and see that it works
  3. now change lang dune in dune-project from 2.9 to anything starting from 3.0, like 3.3
  4. dune build and see the error

Specifications

  • Version of dune (output of dune --version): 3.3.1
  • Version of ocaml (output of ocamlc --version): 4.14.0
  • Operating system (distribution and version): macOS 12.4

Additional information

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions