-
Notifications
You must be signed in to change notification settings - Fork 48
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 #294 from zong-zhe/fix-mod-missing
fix: fix missing mod when dep from local path
- Loading branch information
Showing
101 changed files
with
347 additions
and
44 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
39 changes: 39 additions & 0 deletions
39
pkg/client/test_data/test_run_git_with_local_dep/expect1.yaml
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,39 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: flask-demo | ||
labels: | ||
app: flask-demo | ||
namespace: default | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: flask-demo | ||
template: | ||
metadata: | ||
labels: | ||
app: flask-demo | ||
spec: | ||
containers: | ||
- name: flaskdemo | ||
image: kcllang/flask_demo:8d31498e765ff67a2fa9933d4adffe067544b2fe | ||
ports: | ||
- protocol: TCP | ||
containerPort: 5000 | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: flask-demo | ||
labels: | ||
app: flask-demo | ||
namespace: default | ||
spec: | ||
type: NodePort | ||
selector: | ||
app: flask-demo | ||
ports: | ||
- port: 5000 | ||
protocol: TCP | ||
targetPort: 5000 |
39 changes: 39 additions & 0 deletions
39
pkg/client/test_data/test_run_git_with_local_dep/expect2.yaml
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,39 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: flask-demo | ||
labels: | ||
app: flask-demo | ||
namespace: default | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: flask-demo | ||
template: | ||
metadata: | ||
labels: | ||
app: flask-demo | ||
spec: | ||
containers: | ||
- name: flaskdemo | ||
image: kcllang/flask_demo:8d31498e765ff67a2fa9933d4adffe067544b2fe | ||
ports: | ||
- protocol: TCP | ||
containerPort: 5000 | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: flask-demo | ||
labels: | ||
app: flask-demo | ||
namespace: default | ||
spec: | ||
type: NodePort | ||
selector: | ||
app: flask-demo | ||
ports: | ||
- port: 5000 | ||
protocol: TCP | ||
targetPort: 5000 |
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
1 change: 0 additions & 1 deletion
1
test/e2e/test_suites/kpm/exec_inside_pkg/add_with_path_3/test_suite.input
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
test/e2e/test_suites/kpm/exec_inside_pkg/add_with_path_3/test_suite.stdout
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
test/e2e/test_suites/kpm/exec_inside_pkg/add_with_path_4/test_suite.input
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
test/e2e/test_suites/kpm/exec_inside_pkg/add_with_path_4/test_suite.stdout
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
test/e2e/test_suites/kpm/exec_inside_pkg/add_with_path_5/test_suite.input
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
test/e2e/test_suites/kpm/exec_inside_pkg/add_with_path_5/test_suite.stdout
This file was deleted.
Oops, something went wrong.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
test/e2e/test_suites/kpm/kpm_add/test_kpm_add_git_commit_0/test_suite.input
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 @@ | ||
kpm add -git https://github.com/kcl-lang/flask-demo-kcl-manifests.git -commit 0b3f5ab |
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
test/e2e/test_suites/kpm/kpm_add/test_kpm_add_git_commit_0/test_suite.stdout
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,3 @@ | ||
adding dependency 'flask-demo-kcl-manifests' | ||
cloning 'https://github.com/kcl-lang/flask-demo-kcl-manifests.git' with commit '0b3f5ab' | ||
add dependency 'flask-demo-kcl-manifests:0b3f5ab' successfully |
File renamed without changes.
1 change: 1 addition & 0 deletions
1
test/e2e/test_suites/kpm/kpm_add/test_kpm_add_git_commit_1/test_suite.input
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 @@ | ||
kpm add -git https://github.com/kcl-lang/flask-demo-kcl-manifests.git -commit 8308200 |
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
test/e2e/test_suites/kpm/kpm_add/test_kpm_add_git_commit_1/test_suite.stdout
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,3 @@ | ||
adding dependency 'flask-demo-kcl-manifests' | ||
cloning 'https://github.com/kcl-lang/flask-demo-kcl-manifests.git' with commit '8308200' | ||
add dependency 'flask-demo-kcl-manifests:8308200' successfully |
File renamed without changes.
1 change: 1 addition & 0 deletions
1
test/e2e/test_suites/kpm/kpm_run/test_kpm_run_multi_local_path_1/test_suite.input
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 @@ | ||
kpm run <workspace>/pkg1 |
File renamed without changes.
1 change: 1 addition & 0 deletions
1
test/e2e/test_suites/kpm/kpm_run/test_kpm_run_multi_local_path_1/test_suite.stdout
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! |
2 changes: 2 additions & 0 deletions
2
test/e2e/test_suites/kpm/kpm_run/test_kpm_run_multi_local_path_2/test_suite.env
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,2 @@ | ||
KPM_HOME="" | ||
KCLVM_VENDOR_HOME="" |
1 change: 1 addition & 0 deletions
1
test/e2e/test_suites/kpm/kpm_run/test_kpm_run_multi_local_path_2/test_suite.input
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 @@ | ||
kpm run <workspace>/pkg1 |
Empty file.
2 changes: 2 additions & 0 deletions
2
test/e2e/test_suites/kpm/kpm_run/test_kpm_run_multi_local_path_2/test_suite.stdout
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,2 @@ | ||
adding 'pkg2' | ||
The_first_kcl_program: Hello World! |
2 changes: 2 additions & 0 deletions
2
test/e2e/test_suites/kpm/kpm_run/test_kpm_run_multi_local_path_3/test_suite.env
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,2 @@ | ||
KPM_HOME="" | ||
KCLVM_VENDOR_HOME="" |
1 change: 1 addition & 0 deletions
1
test/e2e/test_suites/kpm/kpm_run/test_kpm_run_multi_local_path_3/test_suite.input
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 @@ | ||
kpm run <workspace>/pkg1 |
Empty file.
2 changes: 2 additions & 0 deletions
2
test/e2e/test_suites/kpm/kpm_run/test_kpm_run_multi_local_path_3/test_suite.stdout
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,2 @@ | ||
adding 'pkg2' | ||
The_first_kcl_program: Hello World! |
2 changes: 2 additions & 0 deletions
2
test/e2e/test_suites/kpm/kpm_run/test_kpm_run_multi_local_path_4/test_suite.env
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,2 @@ | ||
KPM_HOME="" | ||
KCLVM_VENDOR_HOME="" |
1 change: 1 addition & 0 deletions
1
test/e2e/test_suites/kpm/kpm_run/test_kpm_run_multi_local_path_4/test_suite.input
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 @@ | ||
kpm run <workspace>/pkg1 |
Empty file.
2 changes: 2 additions & 0 deletions
2
test/e2e/test_suites/kpm/kpm_run/test_kpm_run_multi_local_path_4/test_suite.stdout
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,2 @@ | ||
adding 'pkg2' | ||
The_first_kcl_program: Hello World! |
2 changes: 2 additions & 0 deletions
2
test/e2e/test_suites/kpm/kpm_run/test_kpm_run_multi_local_path_5/test_suite.env
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,2 @@ | ||
KPM_HOME="" | ||
KCLVM_VENDOR_HOME="" |
1 change: 1 addition & 0 deletions
1
test/e2e/test_suites/kpm/kpm_run/test_kpm_run_multi_local_path_5/test_suite.input
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 @@ | ||
kpm run <workspace>/pkg1 |
Empty file.
2 changes: 2 additions & 0 deletions
2
test/e2e/test_suites/kpm/kpm_run/test_kpm_run_multi_local_path_5/test_suite.stdout
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,2 @@ | ||
adding 'pkg2' | ||
The_first_kcl_program: Hello World! |
3 changes: 0 additions & 3 deletions
3
test/e2e/test_suites/kpm/workflows/add_multi_times/1.init_an_empty_pkg/test_suite.stderr
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,3 +0,0 @@ | ||
creating new : <workspace>/kcl.mod | ||
creating new : <workspace>/kcl.mod.lock | ||
package ' test_kpm_workspace ' init finished | ||
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 @@ | ||
creating new :<workspace>/kcl.mod | ||
creating new :<workspace>/kcl.mod.lock | ||
creating new :<workspace>/main.k | ||
package 'test_kpm_workspace' init finished |
2 changes: 0 additions & 2 deletions
2
test/e2e/test_suites/kpm/workflows/add_multi_times/2.first_add_konfig_dep/test_suite.stderr
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,2 +0,0 @@ | ||
adding dependency konfig | ||
add dependency successfully | ||
4 changes: 3 additions & 1 deletion
4
test/e2e/test_suites/kpm/workflows/add_multi_times/2.first_add_konfig_dep/test_suite.stdout
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 +1,3 @@ | ||
<ignore> | ||
adding dependency 'konfig' | ||
cloning 'https://github.com/awesome-kusion/konfig.git' with tag 'v0.0.1' | ||
add dependency 'konfig:v0.0.1' successfully |
1 change: 0 additions & 1 deletion
1
test/e2e/test_suites/kpm/workflows/add_multi_times/3.second_add_konfig_dep/test_suite.stderr
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 +0,0 @@ | ||
add dependency successfully | ||
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,2 @@ | ||
adding dependency 'konfig' | ||
add dependency 'konfig:v0.0.1' successfully |
1 change: 0 additions & 1 deletion
1
test/e2e/test_suites/kpm/workflows/add_multi_times/4.third_add_konfig_dep/test_suite.stderr
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 +0,0 @@ | ||
add dependency successfully | ||
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,2 @@ | ||
adding dependency 'konfig' | ||
add dependency 'konfig:v0.0.1' successfully |
Oops, something went wrong.