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

feat(melange): support enabled_if in melange.emit #7848

Merged
merged 2 commits into from
Jun 1, 2023

Conversation

anmonteiro
Copy link
Collaborator

@anmonteiro anmonteiro commented Jun 1, 2023

tangentially related to #7717

@anmonteiro anmonteiro requested review from rgrinberg and jchavarri June 1, 2023 02:46
@anmonteiro anmonteiro force-pushed the anmonteiro/melange-enabled-if branch from e7e6422 to 7b933d2 Compare June 1, 2023 02:47
Copy link
Collaborator

@jchavarri jchavarri left a comment

Choose a reason for hiding this comment

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

We should include the new field in the melange.emit stanza documentation, either in this PR or a new one.


$ cat > dune-project <<EOF
> (lang dune 3.8)
> (using melange 0.1)
Copy link
Member

Choose a reason for hiding this comment

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

Is this still 0.1? If so, I don't think there's a need to version any changes.

> let () = Js.log "hello"
> EOF

Not available until dune lang 3.9
Copy link
Member

Choose a reason for hiding this comment

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

If this field needs versioning, it should be using the melange syntax rather than the dune syntax.

@anmonteiro anmonteiro force-pushed the anmonteiro/melange-enabled-if branch from 7b933d2 to 50129c4 Compare June 1, 2023 15:54
@anmonteiro
Copy link
Collaborator Author

Removed the versioning. I can add docs in a follow-up.

Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>
@anmonteiro anmonteiro force-pushed the anmonteiro/melange-enabled-if branch from 50129c4 to 2ab6f05 Compare June 1, 2023 15:55
@anmonteiro anmonteiro enabled auto-merge (squash) June 1, 2023 16:28
@anmonteiro anmonteiro merged commit 30537b5 into ocaml:main Jun 1, 2023
@anmonteiro anmonteiro deleted the anmonteiro/melange-enabled-if branch June 1, 2023 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants