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

refactor: port certificate-generation condition script to Rust #259

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

leon-xd
Copy link

@leon-xd leon-xd commented Jan 9, 2025

Ported last Duckscript condition script to Rust

@wmmc88 wmmc88 self-assigned this Jan 10, 2025
@wmmc88 wmmc88 requested review from Copilot and wmmc88 and removed request for Copilot January 10, 2025 23:57
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (2)

crates/wdk-build/src/cargo_make.rs:1041

  • The error message 'WDRLocalTestCert already in WDRTestCertStore. Skipping certificate generation.' could be more informative. Consider including more context about why the certificate generation is being skipped.
anyhow::anyhow!("WDRLocalTestCert already in WDRTestCertStore. Skipping certificate generation.")

crates/wdk-build/src/cargo_make.rs:1024

  • Ensure that the new behavior introduced in the generate_certificate_condition_script function is covered by tests.
pub fn generate_certificate_condition_script() -> anyhow::Result<()> {

])
.arg(get_wdk_build_output_directory().join("WDRLocalTestCert.cer"))
.output()
.expect("Failed to run certmgr.exe.");
Copy link
Preview

Copilot AI Jan 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error message 'Failed to run certmgr.exe.' could be more descriptive. Consider providing more context about what went wrong.

Suggested change
.expect("Failed to run certmgr.exe.");
.expect("Failed to run certmgr.exe with the provided arguments.");

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
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

Successfully merging this pull request may close these issues.

2 participants