Skip to content

Use literal file names in tests - #106

Merged
liyishuai merged 1 commit into
ocaml-community:masterfrom
shonfeder:update-paths
Jun 30, 2026
Merged

liyishuai merged 1 commit into
ocaml-community:masterfrom
shonfeder:update-paths

Conversation

@shonfeder

Copy link
Copy Markdown
Contributor

These tests rely on fixtures include output based on the represention of file paths supplied directly, without any normalization. But in dune 3.24 the representation of variables expanding to paths within the current directory changes to always include the ./ prefix. As a result, these tests will break. This was introduced with ocaml/dune#15156

Two other alternatives to make these tests pass with dune 3.24 are:

  • Change the error/warning printing logic to normalize the input
  • Promote the results of the output produced with dune 3.24. This has the downside that the tests will fail with earlier versions of dune.

These tests rely on fixtures include output based on the represention of
file paths supplied directly, without any normalization. But in dune
3.24 the representation of variables expanding to paths within the
current directory changes to always include the `./` prefix. As a
result, these tests will break.

The change proposed here uses literal file names rather than dune
variables to ensure the tests have a fixed representation the files
regardless of the dune version.
mseri pushed a commit to ocaml/opam-repository that referenced this pull request Jun 26, 2026
Required due to changes in the representation of paths expanded from
dune variables in dune 3.24.

An upstream PR is proposed at ocaml-community/cppo#106
@mjambon
mjambon requested review from liyishuai and removed request for mjambon June 29, 2026 23:51
@liyishuai
liyishuai merged commit fe1e271 into ocaml-community:master Jun 30, 2026
13 of 73 checks passed
craff pushed a commit to craff/opam-repository that referenced this pull request Jul 25, 2026
Required due to changes in the representation of paths expanded from
dune variables in dune 3.24.

An upstream PR is proposed at ocaml-community/cppo#106
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