diff --git a/pkg/client/add_test.go b/pkg/client/add_test.go index 3162dcfe..330aaddc 100644 --- a/pkg/client/add_test.go +++ b/pkg/client/add_test.go @@ -24,7 +24,7 @@ func testAddWithModSpec(t *testing.T) { name: "TestAddOciWithModSpec", pkgSubPath: "oci", sourceUrl: "oci://ghcr.io/kcl-lang/helloworld?tag=0.1.4&mod=subhelloworld:0.0.1", - msg: "adding dependency 'subhelloworld'add dependency 'subhelloworld:0.0.1' successfully", + msg: "downloading 'kcl-lang/helloworld:0.1.4' from 'ghcr.io/kcl-lang/helloworld:0.1.4'adding dependency 'subhelloworld'add dependency 'subhelloworld:0.0.1' successfully", }, { name: "TestAddGitWithModSpec", @@ -42,7 +42,7 @@ func testAddWithModSpec(t *testing.T) { name: "TestAddGitWithoutModFileWithModSpec", pkgSubPath: "git_mod_1", sourceUrl: "git://github.com/kcl-lang/flask-demo-kcl-manifests.git?commit=5ab0fff&mod=cc", - msg: "cloning 'https://github.com/kcl-lang/flask-demo-kcl-manifests.git' with commit '5ab0fff'adding dependency 'cc'add dependency 'cc:0.0.1' successfull", + msg: "adding dependency 'cc'add dependency 'cc:0.0.1' successfully", }, { name: "TestAddLocalWithModSpec", diff --git a/pkg/client/test_data/add_with_mod_spec/git_mod_1/kcl.mod.expect b/pkg/client/test_data/add_with_mod_spec/git_mod_1/kcl.mod.expect index 0465a74f..d378a02f 100644 --- a/pkg/client/test_data/add_with_mod_spec/git_mod_1/kcl.mod.expect +++ b/pkg/client/test_data/add_with_mod_spec/git_mod_1/kcl.mod.expect @@ -4,4 +4,4 @@ edition = "v0.10.0" version = "0.0.1" [dependencies] -cc = { git = "https://github.com/kcl-lang/flask-demo-kcl-manifests.git", commit = "8308200", version = "0.0.1" } +cc = { git = "https://github.com/kcl-lang/flask-demo-kcl-manifests.git", commit = "5ab0fff", version = "0.0.1" } diff --git a/pkg/client/test_data/add_with_mod_spec/git_mod_1/kcl.mod.lock.expect b/pkg/client/test_data/add_with_mod_spec/git_mod_1/kcl.mod.lock.expect index 6d55b3b1..c3251325 100644 --- a/pkg/client/test_data/add_with_mod_spec/git_mod_1/kcl.mod.lock.expect +++ b/pkg/client/test_data/add_with_mod_spec/git_mod_1/kcl.mod.lock.expect @@ -4,4 +4,4 @@ full_name = "cc_0.0.1" version = "0.0.1" url = "https://github.com/kcl-lang/flask-demo-kcl-manifests.git" - commit = "8308200" + commit = "5ab0fff"