Skip to content

Conversation

@nojb
Copy link
Collaborator

@nojb nojb commented Aug 21, 2025

The formatting change introduced in 3.20.0 (see #10892) has resulted in a number of complaints because of its unversioned nature (it does not depend on the version of the Dune language of the file being formatted). After discussion with @Alizter mainly we think that it may be a good idea to revert this change until we have a good versioning story.

The point of this PR is to have a patch ready in case we decide to do so in time for 3.20.1.

@nojb nojb force-pushed the rollback_dune_formatting_change branch from 36e9c08 to 79c9e69 Compare August 21, 2025 16:13
Copy link
Collaborator

@maiste maiste left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @nojb! Dummy question but I don't see in your patch the code change to go back to the old default. Am I missing something?

@nojb
Copy link
Collaborator Author

nojb commented Aug 21, 2025

Thanks @nojb! Dummy question but I don't see in your patch the code change to go back to the old default. Am I missing something?

It's here:

https://github.com/ocaml/dune/pull/12245/files#diff-54529f58e2fe93f603fd822d61c0a5ef1bed8702c03c61766928ab24e80a230c

Copy link
Collaborator

@maiste maiste left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I missed it in the list of files.

@maiste maiste requested a review from Alizter August 21, 2025 16:44
@maiste maiste mentioned this pull request Aug 21, 2025
9 tasks
@nojb nojb merged commit dc5476c into ocaml:main Aug 21, 2025
9 of 10 checks passed
nojb added a commit to nojb/dune that referenced this pull request Aug 21, 2025
Signed-off-by: Nicolás Ojeda Bär <[email protected]>
nojb added a commit that referenced this pull request Aug 22, 2025
Signed-off-by: Nicolás Ojeda Bär <[email protected]>
maiste pushed a commit to maiste/dune that referenced this pull request Aug 25, 2025
maiste pushed a commit to maiste/dune that referenced this pull request Aug 25, 2025
@maiste maiste mentioned this pull request Aug 25, 2025
maiste added a commit that referenced this pull request Aug 25, 2025
* fix: rollback dune file formatting change in 3.20.0 (#12245)
* Forgot Changes entry for #12245 (#12249)
* chore: apply format

Co-authored-by: Nicolás Ojeda Bär <[email protected]>
maiste added a commit to maiste/opam-repository that referenced this pull request Aug 25, 2025
CHANGES:

### Fixed

- Fix `runtest-js` mistakenly depending on `byte` (fixes ocaml/dune#12243, ocaml/dune#12242,
  @vouillon and @Alizter)

- Fix the interpretation of paths in `dune runtest` when running from within a
  subdirectory. (ocaml/dune#12251, fixes ocaml/dune#12250, @Alizter)

### Changed

- Revert formatting change introduced in 3.20.0 making long lists in
  s-expressions fill the line instead of formatting them in a vertical way
  (ocaml/dune#12245, reverts ocaml/dune#10892, @nojb)
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