Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed dune lang handling #214

Closed
wants to merge 1 commit into from

Conversation

Ninjapouet
Copy link

The dune-lang specification was not handled correctly. The legacy key was not handled properly and the generated dune lang
version didn't use the semver minor number which is meaningful for dune. This PR fixes this and I recall the whole dune lang handling here : dune lang can either be specified in :

  • section [fields] with dune-lang key
  • section [tools] with dune key

In both case, it will generate a (lang dune major.minor) corresponding to the version specified or to the minimal version compatible if both specifications are given.

@Ninjapouet Ninjapouet assigned Ninjapouet and lefessan and unassigned Ninjapouet Jun 1, 2023
@Ninjapouet Ninjapouet added the bug Something isn't working label Jun 1, 2023
@lefessan
Copy link
Member

This fix must be made in a "backward-compatibility" way, i.e. keep the buggy behavior for projects that have a drom-version <= 0.9.2, and behave correctly with drom-version > 0.9.2.

For example, there are already lines like:

project.ml:    if VersionCompare.compare share.drom_version "0.9.2~dev2" > 0 then begin

@lefessan lefessan mentioned this pull request Jun 5, 2024
@lefessan
Copy link
Member

lefessan commented Jun 5, 2024

Merged as part of #223

@lefessan lefessan closed this Jun 5, 2024
@Ninjapouet Ninjapouet deleted the fix-dune-lang branch July 17, 2024 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants