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

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

Open
koxu1996 opened this issue Jul 25, 2024 · 0 comments
Open

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

koxu1996 opened this issue Jul 25, 2024 · 0 comments
Assignees

Comments

@koxu1996
Copy link
Contributor

$ 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)
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

No branches or pull requests

1 participant