instance_id string | text string | repo string | base_commit string | problem_statement string | hints_text string | created_at string | patch string | test_patch string | version string | FAIL_TO_PASS sequence | PASS_TO_PASS sequence | environment_setup_commit string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
asterinas__asterinas-1138 | You will be provided with a codebase. Analyze the code and generate a detailed bug report highlighting potential issues, their causes, and possible solutions.
<codebase>
[start of README.md]
1 <p align="center">
2 <img src="docs/src/images/logo_en.svg" alt="asterinas-logo" width="620"><br>
3 A secure, fast, and... | asterinas/asterinas | 6414111cc57b42db2bae1a0c8b01b85c3830a3b3 | OSDK should support creating crate with `-` in its name
As discovered by #1133, `cargo osdk new --kernel my-first-os` will panic due to `my-first-os` contains `-`.
Since `cargo new my-first-os` is allowed, we should fix the problem to keep osdk consistent with cargo.
| 2024-08-08T01:38:09Z | <patch>
diff --git a/osdk/src/commands/new/mod.rs b/osdk/src/commands/new/mod.rs
index 1c5c386004..7d4b9b0a4a 100644
--- a/osdk/src/commands/new/mod.rs
+++ b/osdk/src/commands/new/mod.rs
@@ -163,18 +163,14 @@ fn get_manifest_path<'a>(cargo_metadata: &'a serde_json::Value, crate_name: &str
fn get_src_path<'a>(cargo_met... | diff --git a/osdk/tests/cli/mod.rs b/osdk/tests/cli/mod.rs
index ed909baaf0..4a7fbc1fda 100644
--- a/osdk/tests/cli/mod.rs
+++ b/osdk/tests/cli/mod.rs
@@ -1,5 +1,7 @@
// SPDX-License-Identifier: MPL-2.0
+use std::fs;
+
use crate::util::*;
#[test]
@@ -50,3 +52,13 @@ fn cli_clippy_help_message() {
assert_succ... | 0.6 | [
"cli::cli_new_crate_with_hyphen"
] | [
"config::unix_args::test::test_apply_kv_array",
"config::unix_args::test::test_get_key",
"config::test::deserialize_toml_manifest",
"config::test::conditional_manifest",
"commands::debug::have_gdb_installed",
"cli::cli_help_message",
"cli::cli_build_help_message",
"cli::cli_check_help_message",
"cli... | 6414111cc57b42db2bae1a0c8b01b85c3830a3b3 |
README.md exists but content is empty.
- Downloads last month
- 164