rohitcoder / hela

MIT License
3 stars 1 forks source link

getting error #1

Open jitendrachandelPB opened 1 month ago

jitendrachandelPB commented 1 month ago

installing error on Ubuntu

warning: unused variable: db_name --> src/utils/common.rs:142:5 142 db_name: &str, ^^^^^^^ help: if this is intentional, prefix it with an underscore: _db_name
= note: `#[warn(unused_variables)]` on by default

warning: unused variable: sast_count --> src/utils/pipeline.rs:142:13 | 142 | let sast_count = 0; | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: _sast_count

warning: unused variable: messages --> src/utils/pipeline.rs:143:13 | 143 | let messages: Vec = Vec::new(); | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: _messages

warning: variable found_sca_issues is assigned to, but never used --> src/utils/pipeline.rs:207:17 207 let mut found_sca_issues = false; ^^^^^^^^^^^^^^^^
= note: consider using `_found_sca_issues` instead
warning: value assigned to found_sca_issues is never read --> src/utils/pipeline.rs:211:17 211 found_sca_issues = true; ^^^^^^^^^^^^^^^^
= help: maybe it is overwritten before being read?
= note: `#[warn(unused_assignments)]` on by default

warning: unused variable: sca_count --> src/utils/pipeline.rs:336:21 | 336 | let sca_count = 0; | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: _sca_count

warning: variable found_sca_issues is assigned to, but never used --> src/utils/pipeline.rs:385:25 385 let mut found_sca_issues = false; ^^^^^^^^^^^^^^^^
= note: consider using `_found_sca_issues` instead
warning: value assigned to found_sca_issues is never read --> src/utils/pipeline.rs:392:25 392 found_sca_issues = true; ^^^^^^^^^^^^^^^^
= help: maybe it is overwritten before being read?

warning: unused variable: secret_count --> src/utils/pipeline.rs:488:13 | 488 | let secret_count = 0; | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: _secret_count

warning: value assigned to policy_yaml is never read --> src/utils/pipeline.rs:845:17 845 let mut policy_yaml: serde_yaml::Value = serde_yaml::Value::Null; ^^^^^^^^^^^
= help: maybe it is overwritten before being read?

warning: unused variable: host --> src/utils/pipeline.rs:1307:9 | 1307 | let host = repo_url.host_str().unwrap_or("github.com"); | ^^^^ help: if this is intentional, prefix it with an underscore: _host

warning: Hela (bin "Hela" test) generated 11 warnings warning: Hela (bin "Hela") generated 11 warnings (11 duplicates) Finished dev profile [unoptimized + debuginfo] target(s) in 28.75s The cargo fix command has successfully applied fixes

rohitcoder commented 1 week ago

Hi @jitendrachandelPB

Apologies for the delayed response, this issue slipped my inbox somehow just noticed it.

From your logs I can see you aren't getting any error, those are just warnings, you can ignore in dev mode, and build was successful, you can get hela binary in targets folder. Let me know if you face any other issues with this.