Skip to content

Commit

Permalink
chore: bump kcl openapi to the latest version
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Dec 11, 2023
1 parent da7d529 commit 3ccadf5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ go 1.19
require (
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d
github.com/spf13/cobra v1.7.0
kcl-lang.io/kcl-go v0.7.1-0.20231206101603-8382cbe12f7c
kcl-lang.io/kcl-openapi v0.5.2
kcl-lang.io/kcl-go v0.7.1-0.20231210062110-2c7216748ca8
kcl-lang.io/kcl-openapi v0.5.3
kcl-lang.io/kcl-playground v0.5.1-0.20230919072953-347ab8959295
kcl-lang.io/kpm v0.4.2
)
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1284,10 +1284,10 @@ k8s.io/utils v0.0.0-20210802155522-efc7438f0176/go.mod h1:jPW/WVKK9YHAvNhRxK0md/
k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
k8s.io/utils v0.0.0-20230406110748-d93618cff8a2 h1:qY1Ad8PODbnymg2pRbkyMT/ylpTrCM8P2RJ0yroCyIk=
k8s.io/utils v0.0.0-20230406110748-d93618cff8a2/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
kcl-lang.io/kcl-go v0.7.1-0.20231206101603-8382cbe12f7c h1:9sfv54sp4TACYKMh9YAZuVuh+TLjrN4BZJmKLNuMq5o=
kcl-lang.io/kcl-go v0.7.1-0.20231206101603-8382cbe12f7c/go.mod h1:xcGpqeGzHYMv1BQ/9pPhAUSHNIClEoKRUKqeGiq2or8=
kcl-lang.io/kcl-openapi v0.5.2 h1:BY4itrE6XBEepFXadD1yZFu9B+F/+zyRtj8i/KANJvw=
kcl-lang.io/kcl-openapi v0.5.2/go.mod h1:Ai9mFztCVKkRSFabczO/r5hCNdqaNtAc2ZIRxTeV0Mk=
kcl-lang.io/kcl-go v0.7.1-0.20231210062110-2c7216748ca8 h1:5/byA+145YBI9FjMqTtmKGI8KNDNkv/ZUjOWBlK/fuc=
kcl-lang.io/kcl-go v0.7.1-0.20231210062110-2c7216748ca8/go.mod h1:xcGpqeGzHYMv1BQ/9pPhAUSHNIClEoKRUKqeGiq2or8=
kcl-lang.io/kcl-openapi v0.5.3 h1:+0nmrvIRpCf+GpNz6gswq00UCU2/c2k8JPF5s2Tem4w=
kcl-lang.io/kcl-openapi v0.5.3/go.mod h1:Ai9mFztCVKkRSFabczO/r5hCNdqaNtAc2ZIRxTeV0Mk=
kcl-lang.io/kcl-playground v0.5.1-0.20230919072953-347ab8959295 h1:RUY3w6jNAB6GoMo27CO1oS4C4gjyWdMXfOTNpTEnkjs=
kcl-lang.io/kcl-playground v0.5.1-0.20230919072953-347ab8959295/go.mod h1:3aMvkPRLMZeORiQ/sHxXQCopwr8L1MMSSXMPC+hxwPA=
kcl-lang.io/kpm v0.4.2 h1:rEjfUdX+2kmwwuBaYvsNURQ5D97C3qLNBYAd+XT+DbU=
Expand Down
5 changes: 3 additions & 2 deletions pkg/options/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"strings"

"kcl-lang.io/cli/pkg/fs"
"kcl-lang.io/kcl-go/pkg/logger"
"kcl-lang.io/kcl-go/pkg/tools/gen"
crdGen "kcl-lang.io/kcl-openapi/pkg/kube_resource/generator"
"kcl-lang.io/kcl-openapi/pkg/swagger/generator"
Expand Down Expand Up @@ -75,7 +76,7 @@ func (o *ImportOptions) Run() error {
Spec: opts.Spec,
})
if err != nil {
return err
logger.GetLogger().Error(err)
}
// do not run validate spec on spec file generated from crd
opts.ValidateSpec = false
Expand All @@ -85,7 +86,7 @@ func (o *ImportOptions) Run() error {
for _, spec := range specs {
opts.Spec = spec
if err := generator.Generate(opts); err != nil {
return err
logger.GetLogger().Error(err)
}
}
}
Expand Down

0 comments on commit 3ccadf5

Please sign in to comment.