Skip to content

Commit

Permalink
add arg --update for kcl mod metadata
Browse files Browse the repository at this point in the history
Signed-off-by: he1pa <[email protected]>
  • Loading branch information
He1pa committed Dec 13, 2024
1 parent b67d803 commit 3ab1ac8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions kclvm/driver/src/toolchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ impl<S: AsRef<OsStr> + Send + Sync> Toolchain for CommandToolchain<S> {
match Command::new(&self.path)
.arg("mod")
.arg("metadata")
.arg("--update")
.current_dir(manifest_path)
.output()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@

[dependencies]
k8s = { oci = "oci://ghcr.io/kcl-lang/k8s", tag = "1.28" }

3 changes: 2 additions & 1 deletion kclvm/tools/src/LSP/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,7 @@ fn complete_import_external_file_e2e_test() {
},
},
);
wait_async!(2000);
wait_async!(5000);

let id = server.next_request_id.get();
server.next_request_id.set(id.wrapping_add(1));
Expand Down Expand Up @@ -1528,6 +1528,7 @@ fn complete_import_external_file_e2e_test() {
}

// TODO: wait for fix `kcl mod metadata` to read only. Otherwise it will lead to an infinite loop
#[allow(dead_code)]
// #[test]
fn mod_file_watcher_test() {
let path = PathBuf::from(".")
Expand Down

0 comments on commit 3ab1ac8

Please sign in to comment.