Skip to content

Commit

Permalink
fix: bump helloworld version to fix ci
Browse files Browse the repository at this point in the history
Signed-off-by: zongz <[email protected]>
  • Loading branch information
zong-zhe committed Oct 23, 2024
1 parent 1566616 commit de2cf9c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions pkg/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ edition = "v0.10.0"
version = "0.0.1"

[dependencies]
helloworld = "0.1.3"
helloworld = "0.1.4"
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion pkg/mvs/mvs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down

0 comments on commit de2cf9c

Please sign in to comment.