We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12807ea commit f205136Copy full SHA for f205136
crates/but-testing/src/main.rs
@@ -21,6 +21,14 @@ async fn main() -> Result<()> {
21
trace::init()?;
22
}
23
let _op_span = tracing::info_span!("cli-op").entered();
24
+ static CHANNEL: Option<&str> = option_env!("CHANNEL");
25
+ if let Some(suffix) = &args.app_suffix
26
+ && CHANNEL != Some(suffix)
27
+ {
28
+ bail!(
29
+ "Launch with CHANNEL={suffix} cargo run -- but-testing… instead - must be compiled in!"
30
+ )
31
+ }
32
33
match &args.cmd {
34
args::Subcommands::AddProject {
0 commit comments