Skip to content

Commit 700fc95

Browse files
committed
feat: use the kpm latest version and polish error messages
Signed-off-by: peefy <xpf6677@163.com>
1 parent 1987947 commit 700fc95

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

examples/package-management/oci/my_package/kcl.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ edition = "0.0.1"
44
version = "0.0.1"
55

66
[dependencies]
7-
k8s = "1.28"
7+
k8s = "1.28"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[dependencies]
2+
[dependencies.k8s]
3+
name = "k8s"
4+
full_name = "k8s_1.28"
5+
version = "1.28"
6+
sum = "aTxPUVZyr9MdiB3YdiY/8pCh9sC55yURnZdGlJsKG6Q="
7+
reg = "ghcr.io"
8+
repo = "kcl-lang/k8s"
9+
oci_tag = "1.28"

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require (
88
kcl-lang.io/kcl-go v0.7.0-alpha.2.0.20231114095059-90254869c6e3
99
kcl-lang.io/kcl-openapi v0.5.2-0.20231116071001-d8316c05cd2d
1010
kcl-lang.io/kcl-playground v0.5.1-0.20230919072953-347ab8959295
11-
kcl-lang.io/kpm v0.4.1-0.20231121124654-7868e7e7674c
11+
kcl-lang.io/kpm v0.4.1
1212
)
1313

1414
require (

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,8 +1292,8 @@ kcl-lang.io/kcl-openapi v0.5.2-0.20231116071001-d8316c05cd2d h1:wbaI/FjzeMbzFGEj
12921292
kcl-lang.io/kcl-openapi v0.5.2-0.20231116071001-d8316c05cd2d/go.mod h1:Ai9mFztCVKkRSFabczO/r5hCNdqaNtAc2ZIRxTeV0Mk=
12931293
kcl-lang.io/kcl-playground v0.5.1-0.20230919072953-347ab8959295 h1:RUY3w6jNAB6GoMo27CO1oS4C4gjyWdMXfOTNpTEnkjs=
12941294
kcl-lang.io/kcl-playground v0.5.1-0.20230919072953-347ab8959295/go.mod h1:3aMvkPRLMZeORiQ/sHxXQCopwr8L1MMSSXMPC+hxwPA=
1295-
kcl-lang.io/kpm v0.4.1-0.20231121124654-7868e7e7674c h1:TDMGbJV14+2yhKp6NEMnWVzQH/qP/maavc9M/vG9PL0=
1296-
kcl-lang.io/kpm v0.4.1-0.20231121124654-7868e7e7674c/go.mod h1:GM6IrXwcTZHU+JLg6b0/JXoAcfwIzJkjIbGqV15jrtI=
1295+
kcl-lang.io/kpm v0.4.1 h1:72kNdmMF6UNMGwa0JOsTVWwFSHyb5TAVaj3PYMmkw4Y=
1296+
kcl-lang.io/kpm v0.4.1/go.mod h1:GM6IrXwcTZHU+JLg6b0/JXoAcfwIzJkjIbGqV15jrtI=
12971297
oras.land/oras-go v1.2.3 h1:v8PJl+gEAntI1pJ/LCrDgsuk+1PKVavVEPsYIHFE5uY=
12981298
oras.land/oras-go v1.2.3/go.mod h1:M/uaPdYklze0Vf3AakfarnpoEckvw0ESbRdN8Z1vdJg=
12991299
oras.land/oras-go/v2 v2.3.0 h1:lqX1aXdN+DAmDTKjiDyvq85cIaI4RkIKp/PghWlAGIU=

pkg/options/run.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,6 @@ func (o *RunOptions) Run() error {
149149
// Complete completes the options based on the provided arguments.
150150
func (o *RunOptions) Complete(args []string) error {
151151
o.Entries = args
152-
// To walk around for wrong kpm log messages.
153-
o.Quiet = true
154152
return nil
155153
}
156154

0 commit comments

Comments
 (0)