Skip to content

Commit

Permalink
chore: bump kcl to v0.5.0-beta.1 (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
Peefy authored Jul 3, 2023
1 parent 8663529 commit 800a4d5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# kclvm-go: KCLVM SDK for Go
# KCL Go SDK

[![GoDoc](https://godoc.org/github.com/KusionStack/kclvm-go?status.svg)](https://godoc.org/github.com/KusionStack/kclvm-go)
[![Coverage Status](https://coveralls.io/repos/github/KusionStack/kclvm-go/badge.svg)](https://coveralls.io/github/KusionStack/kclvm-go)
[![license](https://img.shields.io/github/license/KusionStack/kclvm-go.svg)](https://github.com/KusionStack/kclvm-go/blob/master/LICENSE)

## Building

- [Install Go 1.18+](https://go.dev/dl/)
- [Install Go 1.19+](https://go.dev/dl/)
- [Install KCLVM](https://kcl-lang.io/docs/user_docs/getting-started/install)

```bash
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module kusionstack.io/kclvm-go

go 1.18
go 1.19

require (
github.com/chai2010/jsonv v1.1.3
Expand All @@ -16,7 +16,7 @@ require (
google.golang.org/grpc v1.53.0
google.golang.org/protobuf v1.28.1
gopkg.in/yaml.v3 v3.0.1
kusionstack.io/kclvm-artifact-go v0.5.0-alpha.4
kcl-lang.io/kcl-artifact-go v0.5.0-beta.1
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
kusionstack.io/kclvm-artifact-go v0.5.0-alpha.4 h1:4Oolpot/kDxI3zkm5Dzo3zAjjQdKq8ZWYvhmalBPCkA=
kusionstack.io/kclvm-artifact-go v0.5.0-alpha.4/go.mod h1:WI+NvDeMqu1AduJT119X7q8KQdYmKfv4Nq4OvZ1tAsI=
kcl-lang.io/kcl-artifact-go v0.5.0-beta.1 h1:HGjgH3/+2okgzIxsUC8+yq0LhrUj2h7nk/nz6QKp6N4=
kcl-lang.io/kcl-artifact-go v0.5.0-beta.1/go.mod h1:c07mqi9Hu2UjPW7lYfHhAAWOlZiB7lo7Vkr4jL5ov/M=
6 changes: 3 additions & 3 deletions pkg/kclvm_runtime/kclvm.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"time"

"github.com/gofrs/flock"
kclvmArtifact "kusionstack.io/kclvm-artifact-go"
artifact "kcl-lang.io/kcl-artifact-go"
"kusionstack.io/kclvm-go/pkg/logger"
"kusionstack.io/kclvm-go/pkg/path"
)
Expand All @@ -33,11 +33,11 @@ func init() {
logger.GetLogger().Warningf("install kclvm failed: %s", err.Error())
}
// Install lib
err = kclvmArtifact.InstallKclvm(path)
err = artifact.InstallKclvm(path)
if err != nil {
logger.GetLogger().Warningf("install kclvm failed: %s", err.Error())
}
kclvmArtifact.CleanInstall()
artifact.CleanInstall()

g_KclvmRoot = findKclvmRoot()
}
Expand Down
5 changes: 3 additions & 2 deletions scripts/kclvm.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ const (
)

const (
KclvmAbiVersion KclvmVersionType = KclvmVersionType_v0_5_0_alpha_4
KclvmVersionType_latest = KclvmVersionType_v0_5_0_alpha_4
KclvmAbiVersion KclvmVersionType = KclvmVersionType_v0_5_0_beta_1
KclvmVersionType_latest = KclvmVersionType_v0_5_0_beta_1

KclvmVersionType_v0_5_0_beta_1 KclvmVersionType = "v0.5.0-beta.1"
KclvmVersionType_v0_5_0_alpha_4 KclvmVersionType = "v0.5.0-alpha.4"
KclvmVersionType_v0_5_0_alpha_3 KclvmVersionType = "v0.5.0-alpha.3"
KclvmVersionType_v0_5_0_alpha_2 KclvmVersionType = "v0.5.0-alpha.2"
Expand Down

0 comments on commit 800a4d5

Please sign in to comment.