Skip to content

Commit

Permalink
NDEV-2222: Revert env!(NEON_REVISION) initialization (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreisilviudragnea authored and afalaleev committed Oct 11, 2023
1 parent fdd81d6 commit ea21aa3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions evm_loader/lib/src/commands/init_environment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,16 +139,14 @@ pub async fn execute(
let program_parameters = Parameters::new(read_elf_parameters(config, &data));

let neon_revision = program_parameters.get::<String>("NEON_REVISION")?;
let build_neon_revision =
build_info::format!("{}", $.version_control.unwrap().git().unwrap().commit_id);
if neon_revision != build_neon_revision {
if neon_revision != env!("NEON_REVISION") {
if force {
warn!("NeonEVM revision doesn't match CLI revision. This check has been disabled with `--force` flag");
} else {
error!("NeonEVM revision doesn't match CLI revision. Use appropriate neon-cli version or add `--force` flag");
return Err(EnvironmentError::RevisionMismatch(
neon_revision,
build_neon_revision.to_string(),
env!("NEON_REVISION").to_string(),
)
.into());
}
Expand Down

0 comments on commit ea21aa3

Please sign in to comment.