diff --git a/kclvm/driver/src/test_data/kpm_update/kcl.mod b/kclvm/driver/src/test_data/kpm_update/kcl.mod index a851352ac..7543c05d5 100644 --- a/kclvm/driver/src/test_data/kpm_update/kcl.mod +++ b/kclvm/driver/src/test_data/kpm_update/kcl.mod @@ -4,5 +4,5 @@ edition = "0.0.1" version = "0.0.1" [dependencies] -helloworld = { oci = "oci://ghcr.io/kcl-lang/helloworld", tag = "0.1.0" } flask = { git = "https://github.com/kcl-lang/flask-demo-kcl-manifests", commit = "ade147b" } +helloworld = { oci = "oci://ghcr.io/kcl-lang/helloworld", tag = "0.1.0" } diff --git a/kclvm/driver/src/test_data/test_vendor/.kpm/config/kpm.json b/kclvm/driver/src/test_data/test_vendor/.kpm/config/kpm.json index 7c459d9c7..c2aa99813 100644 --- a/kclvm/driver/src/test_data/test_vendor/.kpm/config/kpm.json +++ b/kclvm/driver/src/test_data/test_vendor/.kpm/config/kpm.json @@ -1 +1 @@ -{"DefaultOciRegistry":"ghcr.io","DefaultOciRepo":"kcl-lang","DefaultOciPlainHttp":false} \ No newline at end of file +{"DefaultOciRegistry":"ghcr.io","DefaultOciRepo":"kcl-lang"} \ No newline at end of file diff --git a/kclvm/parser/src/lexer/tests.rs b/kclvm/parser/src/lexer/tests.rs index 8d6ec4b75..bda1cc021 100644 --- a/kclvm/parser/src/lexer/tests.rs +++ b/kclvm/parser/src/lexer/tests.rs @@ -7,7 +7,7 @@ use compiler_base_span::{span::new_byte_pos, FilePathMapping, SourceMap}; use expect_test::{expect, Expect}; use kclvm_error::Handler; use kclvm_span::create_session_globals_then; -use std::cell::RefCell; +use parking_lot::RwLock; use std::path::PathBuf; use std::sync::Arc; @@ -16,7 +16,7 @@ impl ParseSession { pub(crate) fn with_source_map(sm: Arc) -> Self { Self( Arc::new(Session::new(sm, Arc::new(DiagnosticHandler::default()))), - RefCell::new(Handler::default()), + RwLock::new(Handler::default()), ) } }