-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #477 from zong-zhe/support-update-mvs
feat: `kpm update` support mvs algorithm
- Loading branch information
Showing
54 changed files
with
549 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
pkg/client/test_data/test_mod_file_package/test_pkg/expect.mod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
[package] | ||
name = "test_pkg" | ||
edition = "v0.10.0" | ||
version = "0.0.1" | ||
|
||
[dependencies] | ||
agent = { git = "https://github.com/kcl-lang/modules.git", commit = "ee03122b5f45b09eb48694422fc99a0772f6bba8", package = "agent" } | ||
cc = { git = "https://github.com/kcl-lang/flask-demo-kcl-manifests.git", commit = "8308200", package = "cc" } |
18 changes: 7 additions & 11 deletions
18
pkg/client/test_data/test_mod_file_package/test_pkg/expect.mod.lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
[dependencies] | ||
[dependencies.agent] | ||
name = "agent" | ||
full_name = "modules_ee03122b5f45b09eb48694422fc99a0772f6bba8" | ||
version = "0.1.0" | ||
url = "https://github.com/kcl-lang/modules.git" | ||
commit = "ee03122b5f45b09eb48694422fc99a0772f6bba8" | ||
package = "agent" | ||
[dependencies.k8s] | ||
name = "k8s" | ||
full_name = "k8s_1.28" | ||
version = "1.28" | ||
[dependencies.cc] | ||
name = "cc" | ||
full_name = "flask-demo-kcl-manifests_8308200" | ||
version = "0.0.1" | ||
url = "https://github.com/kcl-lang/flask-demo-kcl-manifests.git" | ||
commit = "8308200" | ||
package = "cc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[package] | ||
name = "test_pkg" | ||
edition = "v0.10.0" | ||
version = "0.0.1" | ||
|
||
[dependencies] | ||
cc = { git = "https://github.com/kcl-lang/flask-demo-kcl-manifests.git", commit = "8308200", package = "cc" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[dependencies] | ||
[dependencies.cc] | ||
name = "cc" | ||
full_name = "flask-demo-kcl-manifests_8308200" | ||
version = "0.0.1" | ||
url = "https://github.com/kcl-lang/flask-demo-kcl-manifests.git" | ||
commit = "8308200" | ||
package = "cc" |
5 changes: 4 additions & 1 deletion
5
pkg/client/test_data/test_mod_file_package/test_pkg_win/expect.mod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
[package] | ||
name = "test_pkg" | ||
edition = "v0.10.0" | ||
version = "0.0.1" | ||
|
||
[dependencies] | ||
agent = { git = "https://github.com/kcl-lang/modules.git", commit = "ee03122b5f45b09eb48694422fc99a0772f6bba8", package = "agent" } | ||
cc = { git = "https://github.com/kcl-lang/flask-demo-kcl-manifests.git", commit = "8308200", package = "cc" } |
18 changes: 7 additions & 11 deletions
18
pkg/client/test_data/test_mod_file_package/test_pkg_win/expect.mod.lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
[dependencies] | ||
[dependencies.agent] | ||
name = "agent" | ||
full_name = "modules_ee03122b5f45b09eb48694422fc99a0772f6bba8" | ||
version = "0.1.0" | ||
url = "https://github.com/kcl-lang/modules.git" | ||
commit = "ee03122b5f45b09eb48694422fc99a0772f6bba8" | ||
package = "agent" | ||
[dependencies.k8s] | ||
name = "k8s" | ||
full_name = "k8s_1.28" | ||
version = "1.28" | ||
[dependencies.cc] | ||
name = "cc" | ||
full_name = "flask-demo-kcl-manifests_8308200" | ||
version = "0.0.1" | ||
url = "https://github.com/kcl-lang/flask-demo-kcl-manifests.git" | ||
commit = "8308200" | ||
package = "cc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[package] | ||
name = "test_pkg" | ||
edition = "v0.10.0" | ||
version = "0.0.1" |
7 changes: 7 additions & 0 deletions
7
pkg/client/test_data/test_update_with_mvs/update_0/dep_0/kcl.mod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[package] | ||
name = "dep_0" | ||
edition = "v0.10.0" | ||
version = "0.0.1" | ||
|
||
[dependencies] | ||
helloworld = "0.1.0" |
6 changes: 6 additions & 0 deletions
6
pkg/client/test_data/test_update_with_mvs/update_0/dep_0/kcl.mod.lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[dependencies] | ||
[dependencies.helloworld] | ||
name = "helloworld" | ||
full_name = "helloworld_0.1.0" | ||
version = "0.1.0" | ||
sum = "aqrvSsd8zGHzRERbOzxYxARmK6QjvpQMYC1OqemdZvc=" |
1 change: 1 addition & 0 deletions
1
pkg/client/test_data/test_update_with_mvs/update_0/dep_0/main.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The_first_kcl_program = 'Hello World!' |
7 changes: 7 additions & 0 deletions
7
pkg/client/test_data/test_update_with_mvs/update_0/dep_1/kcl.mod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[package] | ||
name = "dep_1" | ||
edition = "v0.10.0" | ||
version = "0.0.1" | ||
|
||
[dependencies] | ||
helloworld = "0.1.1" |
6 changes: 6 additions & 0 deletions
6
pkg/client/test_data/test_update_with_mvs/update_0/dep_1/kcl.mod.lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[dependencies] | ||
[dependencies.helloworld] | ||
name = "helloworld" | ||
full_name = "helloworld_0.1.1" | ||
version = "0.1.1" | ||
sum = "7OO4YK2QuRWPq9C7KTzcWcti5yUnueCjptT3OXiPVeQ=" |
1 change: 1 addition & 0 deletions
1
pkg/client/test_data/test_update_with_mvs/update_0/dep_1/main.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The_first_kcl_program = 'Hello World!' |
7 changes: 7 additions & 0 deletions
7
pkg/client/test_data/test_update_with_mvs/update_0/dep_2/kcl.mod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[package] | ||
name = "dep_2" | ||
edition = "v0.10.0" | ||
version = "0.0.1" | ||
|
||
[dependencies] | ||
helloworld = "0.1.0" |
5 changes: 5 additions & 0 deletions
5
pkg/client/test_data/test_update_with_mvs/update_0/dep_2/kcl.mod.lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[dependencies] | ||
[dependencies.helloworld] | ||
name = "helloworld" | ||
full_name = "helloworld_0.1.0" | ||
version = "0.1.0" |
1 change: 1 addition & 0 deletions
1
pkg/client/test_data/test_update_with_mvs/update_0/dep_2/main.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The_first_kcl_program = 'Hello World!' |
9 changes: 9 additions & 0 deletions
9
pkg/client/test_data/test_update_with_mvs/update_0/pkg/kcl.mod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[package] | ||
name = "pkg" | ||
edition = "v0.10.0" | ||
version = "0.0.1" | ||
|
||
[dependencies] | ||
dep_0 = { path = "../dep_0" } | ||
dep_1 = { path = "../dep_1" } | ||
dep_2 = { path = "../dep_2" } |
9 changes: 9 additions & 0 deletions
9
pkg/client/test_data/test_update_with_mvs/update_0/pkg/kcl.mod.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[package] | ||
name = "pkg" | ||
edition = "v0.10.0" | ||
version = "0.0.1" | ||
|
||
[dependencies] | ||
dep_0 = { path = "../dep_0" } | ||
dep_1 = { path = "../dep_1" } | ||
dep_2 = { path = "../dep_2" } |
17 changes: 17 additions & 0 deletions
17
pkg/client/test_data/test_update_with_mvs/update_0/pkg/kcl.mod.lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[dependencies] | ||
[dependencies.dep_0] | ||
name = "dep_0" | ||
full_name = "dep_0_0.0.1" | ||
version = "0.0.1" | ||
[dependencies.dep_1] | ||
name = "dep_1" | ||
full_name = "dep_1_0.0.1" | ||
version = "0.0.1" | ||
[dependencies.dep_2] | ||
name = "dep_2" | ||
full_name = "dep_2_0.0.1" | ||
version = "0.0.1" | ||
[dependencies.helloworld] | ||
name = "helloworld" | ||
full_name = "helloworld_0.1.1" | ||
version = "0.1.1" |
17 changes: 17 additions & 0 deletions
17
pkg/client/test_data/test_update_with_mvs/update_0/pkg/kcl.mod.lock.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[dependencies] | ||
[dependencies.dep_0] | ||
name = "dep_0" | ||
full_name = "dep_0_0.0.1" | ||
version = "0.0.1" | ||
[dependencies.dep_1] | ||
name = "dep_1" | ||
full_name = "dep_1_0.0.1" | ||
version = "0.0.1" | ||
[dependencies.dep_2] | ||
name = "dep_2" | ||
full_name = "dep_2_0.0.1" | ||
version = "0.0.1" | ||
[dependencies.helloworld] | ||
name = "helloworld" | ||
full_name = "helloworld_0.1.1" | ||
version = "0.1.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The_first_kcl_program = 'Hello World!' |
7 changes: 7 additions & 0 deletions
7
pkg/client/test_data/test_update_with_mvs/update_1/dep_0/kcl.mod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[package] | ||
name = "dep_0" | ||
edition = "v0.10.0" | ||
version = "0.0.1" | ||
|
||
[dependencies] | ||
helloworld = "0.1.0" |
6 changes: 6 additions & 0 deletions
6
pkg/client/test_data/test_update_with_mvs/update_1/dep_0/kcl.mod.lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[dependencies] | ||
[dependencies.helloworld] | ||
name = "helloworld" | ||
full_name = "helloworld_0.1.0" | ||
version = "0.1.0" | ||
sum = "aqrvSsd8zGHzRERbOzxYxARmK6QjvpQMYC1OqemdZvc=" |
1 change: 1 addition & 0 deletions
1
pkg/client/test_data/test_update_with_mvs/update_1/dep_0/main.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The_first_kcl_program = 'Hello World!' |
7 changes: 7 additions & 0 deletions
7
pkg/client/test_data/test_update_with_mvs/update_1/dep_1/kcl.mod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[package] | ||
name = "dep_1" | ||
edition = "v0.10.0" | ||
version = "0.0.1" | ||
|
||
[dependencies] | ||
helloworld = "0.1.1" |
6 changes: 6 additions & 0 deletions
6
pkg/client/test_data/test_update_with_mvs/update_1/dep_1/kcl.mod.lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[dependencies] | ||
[dependencies.helloworld] | ||
name = "helloworld" | ||
full_name = "helloworld_0.1.1" | ||
version = "0.1.1" | ||
sum = "7OO4YK2QuRWPq9C7KTzcWcti5yUnueCjptT3OXiPVeQ=" |
1 change: 1 addition & 0 deletions
1
pkg/client/test_data/test_update_with_mvs/update_1/dep_1/main.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The_first_kcl_program = 'Hello World!' |
7 changes: 7 additions & 0 deletions
7
pkg/client/test_data/test_update_with_mvs/update_1/dep_2/kcl.mod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[package] | ||
name = "dep_2" | ||
edition = "v0.10.0" | ||
version = "0.0.1" | ||
|
||
[dependencies] | ||
helloworld = "0.1.0" |
5 changes: 5 additions & 0 deletions
5
pkg/client/test_data/test_update_with_mvs/update_1/dep_2/kcl.mod.lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[dependencies] | ||
[dependencies.helloworld] | ||
name = "helloworld" | ||
full_name = "helloworld_0.1.0" | ||
version = "0.1.0" |
1 change: 1 addition & 0 deletions
1
pkg/client/test_data/test_update_with_mvs/update_1/dep_2/main.k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The_first_kcl_program = 'Hello World!' |
Oops, something went wrong.