Skip to content

Commit

Permalink
chore: bump kcvm version to 0.4.5 (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
Peefy committed Feb 28, 2023
1 parent 9bcf3d2 commit e966161
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![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)

- [Install Go 17+](https://go.dev/dl/)
- [Install Go 1.17+](https://go.dev/dl/)
- [Install kclvm](https://kcl-lang.io/docs/user_docs/getting-started/install) (or `go run ./cmds/kcl-go/ setup-kclvm` and add `./_build/{Darwin|Darwin-arm64|Linux}/bin` to `PATH`)

```
Expand Down Expand Up @@ -35,7 +35,7 @@ import (
)

func main() {
yaml := kclvm.MustRun("hello.k", kclvm.WithCode(k_code)).First().YAMLString()
yaml := kclvm.MustRun("hello.k", kclvm.WithCode(k_code)).GetRawYamlResult()
fmt.Println(yaml)
}

Expand Down
2 changes: 1 addition & 1 deletion examples/hello/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

func main() {
yaml := kclvm.MustRun("hello.k", kclvm.WithCode(k_code)).First().YAMLString()
yaml := kclvm.MustRun("hello.k", kclvm.WithCode(k_code)).GetRawYamlResult()
fmt.Println(yaml)
}

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ require (
google.golang.org/protobuf v1.28.0
gopkg.in/yaml.v3 v3.0.0-20220512140231-539c8e751b99
kusionstack.io/kcl-plugin v0.4.4
kusionstack.io/kclvm-artifact-go v0.4.4-beta.6.0.20230222073855-196f87256b27
kusionstack.io/kclvm-artifact-go v0.4.5
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,5 @@ honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWh
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
kusionstack.io/kcl-plugin v0.4.4 h1:Ke6SMbZ33qaR0mTCaZSVmVop+8Hk8UQK217z7ml97z8=
kusionstack.io/kcl-plugin v0.4.4/go.mod h1:VgB7qXVbDGWFOh/qb/yXf75+UrliP5EPXOQUDqBCdAQ=
kusionstack.io/kclvm-artifact-go v0.4.4-beta.6.0.20230222073855-196f87256b27 h1:OmTqDJYtqn4tMeeR4bQ1g8Qr64BimGF9dzEdiegjioo=
kusionstack.io/kclvm-artifact-go v0.4.4-beta.6.0.20230222073855-196f87256b27/go.mod h1:WI+NvDeMqu1AduJT119X7q8KQdYmKfv4Nq4OvZ1tAsI=
kusionstack.io/kclvm-artifact-go v0.4.5 h1:PlCKpdeFExV4JNFQ2dRPZ9nrEL3HxVGyGvOlOLPwD+0=
kusionstack.io/kclvm-artifact-go v0.4.5/go.mod h1:WI+NvDeMqu1AduJT119X7q8KQdYmKfv4Nq4OvZ1tAsI=
10 changes: 9 additions & 1 deletion scripts/kclvm.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ const (

const (
KclvmAbiVersion KclvmVersionType = "v0.4.4"
KclvmVersionType_latest = KclvmVersionType_v0_4_4
KclvmVersionType_latest = KclvmVersionType_v0_4_5

KclvmVersionType_v0_4_5 KclvmVersionType = "v0.4.5"
KclvmVersionType_v0_4_5_alpha_2 KclvmVersionType = "v0.4.5-alpha.2"
KclvmVersionType_v0_4_5_alpha_1 KclvmVersionType = "v0.4.5-alpha.1"
KclvmVersionType_v0_4_4 KclvmVersionType = "v0.4.4"
Expand Down Expand Up @@ -66,6 +67,13 @@ var (
KclvmDownloadUrlBase_mirrors = []string{}

KclvmMd5sum = map[string]string{
// https://github.com/KusionStack/KCLVM/releases/tag/v0.4.5
"kclvm-v0.4.5-Darwin.tar.gz": "", // read from *.md5.txt
"kclvm-v0.4.5-Darwin-arm64.tar.gz": "", // read from *.md5.txt
"kclvm-v0.4.5-centos.tar.gz": "", // read from *.md5.txt
"kclvm-v0.4.5-ubuntu.tar.gz": "", // read from *.md5.txt
"kclvm-v0.4.5-windows.zip": "", // read from *.md5.txt

// https://github.com/KusionStack/KCLVM/releases/tag/v0.4.5-alpha.2
"kclvm-v0.4.5-alpha.2-Darwin.tar.gz": "", // read from *.md5.txt
"kclvm-v0.4.5-alpha.2-Darwin-arm64.tar.gz": "", // read from *.md5.txt
Expand Down

0 comments on commit e966161

Please sign in to comment.