diff --git a/pkg/client/client_test.go b/pkg/client/client_test.go index c1bf3c1b..449fff59 100644 --- a/pkg/client/client_test.go +++ b/pkg/client/client_test.go @@ -156,18 +156,18 @@ func testDownloadLatestOci(t *testing.T) { dep, err := kpmcli.Download(&depFromOci, "", testPath) assert.Equal(t, err, nil) assert.Equal(t, dep.Name, "helloworld") - assert.Equal(t, dep.FullName, "helloworld_0.1.3") - assert.Equal(t, dep.Version, "0.1.3") - assert.Equal(t, dep.Sum, "T9FGqbdtkuML4+pDyf4SFP5bDcDusbra6AKtCZygvNw=") + assert.Equal(t, dep.FullName, "helloworld_0.1.4") + assert.Equal(t, dep.Version, "0.1.4") + assert.Equal(t, dep.Sum, "9J9HOMhdypaDYf0J7PqtpGTdlkbxkN0HFEYhosHhf4U=") assert.NotEqual(t, dep.Source.Oci, nil) assert.Equal(t, dep.Source.Oci.Reg, "ghcr.io") assert.Equal(t, dep.Source.Oci.Repo, "kcl-lang/helloworld") - assert.Equal(t, dep.Source.Oci.Tag, "0.1.3") - assert.Equal(t, dep.LocalFullPath, filepath.Join(getTestDir("download"), "helloworld_0.1.3")) + assert.Equal(t, dep.Source.Oci.Tag, "0.1.4") + assert.Equal(t, dep.LocalFullPath, filepath.Join(getTestDir("download"), "helloworld_0.1.4")) assert.Equal(t, err, nil) // Check whether the tar downloaded by `kpm add` has been deleted. - assert.Equal(t, utils.DirExists(filepath.Join(testPath, "helloworld_0.1.3.tar")), false) + assert.Equal(t, utils.DirExists(filepath.Join(testPath, "helloworld_0.1.4.tar")), false) assert.Equal(t, utils.DirExists(filepath.Join(getTestDir("download"), "helloworld")), false) } diff --git a/pkg/client/test_data/add_with_default_dep/no_tag/kcl.mod.expect b/pkg/client/test_data/add_with_default_dep/no_tag/kcl.mod.expect index b0ba4fd3..927874d0 100644 --- a/pkg/client/test_data/add_with_default_dep/no_tag/kcl.mod.expect +++ b/pkg/client/test_data/add_with_default_dep/no_tag/kcl.mod.expect @@ -4,4 +4,4 @@ edition = "v0.10.0" version = "0.0.1" [dependencies] -helloworld = "0.1.3" +helloworld = "0.1.4" diff --git a/pkg/client/test_data/add_with_default_dep/no_tag/kcl.mod.lock.expect b/pkg/client/test_data/add_with_default_dep/no_tag/kcl.mod.lock.expect index 7a2bb006..970511cb 100644 --- a/pkg/client/test_data/add_with_default_dep/no_tag/kcl.mod.lock.expect +++ b/pkg/client/test_data/add_with_default_dep/no_tag/kcl.mod.lock.expect @@ -1,5 +1,5 @@ [dependencies] [dependencies.helloworld] name = "helloworld" - full_name = "helloworld_0.1.3" - version = "0.1.3" + full_name = "helloworld_0.1.4" + version = "0.1.4" diff --git a/pkg/mvs/mvs_test.go b/pkg/mvs/mvs_test.go index 5fd53ec8..9583d064 100644 --- a/pkg/mvs/mvs_test.go +++ b/pkg/mvs/mvs_test.go @@ -146,7 +146,7 @@ func testUpgradeAllToLatest(t *testing.T) { expectedReqs := []module.Version{ {Path: "test_with_external_deps", Version: "0.0.1"}, {Path: "argo-cd-order", Version: "0.2.0"}, - {Path: "helloworld", Version: "0.1.3"}, + {Path: "helloworld", Version: "0.1.4"}, {Path: "json_merge_patch", Version: "0.1.1"}, {Path: "k8s", Version: "1.31.2"}, {Path: "podinfo", Version: "0.2.1"},