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

build: disable-grpc flag #7478

Closed

Conversation

jackstar12
Copy link
Contributor

related: #7473

When enabling the cln-grpc plugin to run by default, uses should have the option to opt out of it at build time.

Copy link
Collaborator

@niftynei niftynei left a comment

Choose a reason for hiding this comment

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

This seems like it adds a RUST dependent GRPC option; defaulting it to active won't have any impact unless the RUST compilation option is also set.

What's the end user goal here?

@@ -179,6 +179,7 @@ set_defaults()
VALGRIND=${VALGRIND:-$(default_valgrind_setting)}
TEST_NETWORK=${TEST_NETWORK:-regtest}
RUST=${RUST:-$(default_rust_setting)}
GRPC=1
Copy link
Collaborator

Choose a reason for hiding this comment

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

since this depends on RUST, seems logical to default it to the rust setting?

@@ -220,6 +221,8 @@ usage()
echo " Compile with fuzzing"
usage_with_default "--enable/disable-rust" "$RUST" "enable" "disable"
echo " Compile with Rust support"
usage_with_default "--enable/disable-grpc" "$GRPC" "enable" "disable"
echo " Compile with cln-grpc plugin"
Copy link
Collaborator

Choose a reason for hiding this comment

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

If this is enabled but RUST isn't, iiuc it won't actually compile the CLN-GRPC plugin right? Seems confusing.

@jackstar12
Copy link
Contributor Author

jackstar12 commented Jul 29, 2024

What's the end user goal here?

Based on this discord conversation, some users might want to disable the grpc plugin at build time to reduce build times. The same can be achieved with --disable-rust right now. But in case more Rust plugins are added, it would makes sense to be able to disable the build of just the gRPC plugin.

@kilrau
Copy link

kilrau commented Jul 30, 2024

I also agree it's better with the separate disable-grpc flag, see Discord discussion linked above. Wdyt? @cdecker

@cdecker
Copy link
Member

cdecker commented Jul 30, 2024

Let's cut down on the compilation configurations, and keep things as runtime configuration whenever possible. We already eliminated the experimental features compile time flag, and adding new ones may not be a good idea (it massively increases the support area).

To disable at runtime we have --disable-plugin=cln-grpc, as pointed out in discord, so this can be closed I think.

@cdecker cdecker closed this Jul 30, 2024
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.

4 participants