cspr-rad / kairos

Apache License 2.0
4 stars 0 forks source link

CCTL envs are required when building CLI with `database` feature #171

Open koxu1996 opened 3 months ago

koxu1996 commented 3 months ago
$ cargo build -p kairos-cli --no-default-features --features database

[cut]

   Compiling kairos-server v0.1.0 (/home/andrew/Projects/casper/kairos/kairos-server)
   Compiling kairos-test-utils v0.1.0 (/home/andrew/Projects/casper/kairos/kairos-test-utils)
error: environment variable `CCTL_CHAINSPEC` not defined at compile time
  --> kairos-test-utils/src/cctl.rs:79:73
   |
79 |         let chainspec_path = chainspec_path.unwrap_or_else(|| Path::new(env!("CCTL_CHAINSPEC")));
   |                                                                         ^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: use `std::env::var("CCTL_CHAINSPEC")` to read the variable at run time
   = note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info)

error: environment variable `CCTL_CONFIG` not defined at compile time
  --> kairos-test-utils/src/cctl.rs:80:67
   |
80 |         let config_path = config_path.unwrap_or_else(|| Path::new(env!("CCTL_CONFIG")));
   |                                                                   ^^^^^^^^^^^^^^^^^^^
   |
   = help: use `std::env::var("CCTL_CONFIG")` to read the variable at run time
   = note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info)