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

Fix alert flags so that Merlin understands them #5245

Merged
merged 1 commit into from
Nov 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix alert flags so that Merlin understands them
Signed-off-by: Andrey Mokhov <[email protected]>
snowleopard committed Nov 29, 2021
commit 36a9372a4fb5b8d9aa1e9bcd97b0b8b721e85b2c
2 changes: 1 addition & 1 deletion dune
Original file line number Diff line number Diff line change
@@ -33,4 +33,4 @@

(env
(_
(flags :standard -alert=-unstable)))
(flags :standard -alert -unstable)))
2 changes: 1 addition & 1 deletion otherlibs/configurator/dune
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
(env
(_
(flags :standard \ -alert=-unstable)))
(flags :standard \ -alert -unstable)))
Copy link

Choose a reason for hiding this comment

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

That'll work for this case, but in general it means: exclude "-alert" and exclude "-unstable" which is not the same as exclude "-alert -unstable". It'll work for us as "-unstable" doesn't appear anywhere else.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, removing flags in this way is unsafe but I guess we don't have a safer mechanism. Hopefully, it'll not bite us in this particular case.

Copy link
Collaborator

Choose a reason for hiding this comment

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

If the intent is to enable the unstable alert, I think you can use :standard -alert +unstable.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh, good point, let me try that.

Copy link

Choose a reason for hiding this comment

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

The intent is to remove the flag because configurator needs to build with 4.02 and 4.02 doesn't know the -alert flag.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah right, then it doesn't help, sorry for the noise.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

OK, merging as is then.