Skip to content

Conversation

@v-gb
Copy link
Contributor

@v-gb v-gb commented Nov 19, 2025

As discussed in #2736.

The change wouldn't make sense to merge as is (for instance, this new Bin_conf.global_conf type in the interface cannot be constructed from outside the module), this was more written to see how information flows. It'd need a bit of cleanup.

The rpc server exe might change behavior slightly (not sure): it doesn't doesn't parse the command line at all. I think any command line flag would have been rejected by the outermost call to cmdliner anyway, but if Cmdliner terms consults environment variables, maybe something could be different here ?

Also the behavior of update_using_cmdline is perhaps different, not sure either. Specifically, the old code is doing something like global_conf := apply_cli {!global_conf with lib_conf} vs after let new_value = global_conf.apply_cli { default with lib_conf }. I think this repeated mutations of global_conf is not necessary, but I'm not 100% sure.

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.

1 participant